You are here

function gmap_taxonomy_taxonomy_term_delete in GMap Module 7

Same name and namespace in other branches
  1. 7.2 gmap_taxonomy.module \gmap_taxonomy_taxonomy_term_delete()

Implement hook_taxonomy_term_delete().

File

./gmap_taxonomy.module, line 131
GMap Taxonomy Markers

Code

function gmap_taxonomy_taxonomy_term_delete($term) {
  db_delete('gmap_taxonomy_term')
    ->condition('tid', $term->tid)
    ->execute();

  // Use gmap_taxonomy_node for search because term_node rows are already gone.
  gmap_taxonomy_reassign_marker($term->tid, TRUE);
}