You are here

function votingapi_delete_votes in Voting API 5

Same name and namespace in other branches
  1. 6.2 votingapi.module \votingapi_delete_votes()
  2. 6 votingapi.module \votingapi_delete_votes()
  3. 7.2 votingapi.module \votingapi_delete_votes()

Deletes a collection of vote objects.

Parameters

$votes: An array of vote objects

File

./votingapi.module, line 247

Code

function votingapi_delete_votes($votes = array()) {
  if (is_array($votes)) {
    foreach ($votes as $vobj) {
      votingapi_delete_vote($vobj);
    }
  }
}