Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
(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)