VotingAPI: Full control for complex voting modules
Last updated on
30 April 2025
(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:
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