VotingAPI: Full control for complex voting modules
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
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion