VotingAPI: Full control for complex voting modules

Last updated on
30 April 2025

You are browsing documentation for an older version of Drupal, which is not supported any longer, and the information may not be correct. See current documentation for Contributed modules

(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)

Help improve this page

Page status: Not set

You can: