You are here

function plus1_taxonomy_term_delete in Plus 1 7

Implements hook_taxonomy_term_delete().

File

./plus1.module, line 437

Code

function plus1_taxonomy_term_delete($term) {
  $criteria['entity_id'] = $term->tid;
  $criteria['entity_type'] = 'taxonomy_term';
  $votes = votingapi_select_votes($criteria);
  votingapi_delete_votes($votes);
}