You are here

function lineage_taxonomy_term_delete in Taxonomy Lineage 7

Implements hook_taxonomy_term_delete().

File

./lineage.module, line 16
lineage.module Module code for taxonomy term hierarchy lineage.

Code

function lineage_taxonomy_term_delete($term) {
  db_delete('taxonomy_term_lineage')
    ->condition('tid', $term->tid)
    ->execute();
}