You are here

function votingapi_votingapi_storage_delete_votes in Voting API 6.2

Same name and namespace in other branches
  1. 7.2 votingapi.module \votingapi_votingapi_storage_delete_votes()

Implementation of hook_votingapi_storage_delete_votes().

File

./votingapi.module, line 194
A generalized voting API for Drupal.

Code

function votingapi_votingapi_storage_delete_votes($votes, $vids) {
  db_delete('votingapi_vote')
    ->condition('vote_id', $vids, 'IN')
    ->execute();
}