Community Documentation

VotingAPI: Full control for complex voting modules

Last updated May 17, 2012. Created by eaton on June 13, 2006.
Edited by tengoku, webchick. Log in to edit this page.

(stub article)

Documentation for the fine-grain control functions that VotingAPI uses.

votingapi_add_vote($content_type, $content_id, $value, $value_type = VOTINGAPI_VALUE_DEFAULT_TYPE, $tag = VOTINGAPI_VALUE_DEFAULT_TAG, $uid = NULL)

votingapi_change_vote($vobj, $value)

votingapi_delete_vote($vobj)

votingapi_delete_votes($votes = array())

votingapi_recalculate_results($content_type, $content_id)

votingapi_get_user_votes($content_type, $content_id, $uid = NULL)

votingapi_get_content_votes($content_type, $content_id)

Page status

About this page

Drupal version
Drupal 4.7.x
Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here