You are here

function lineage_taxonomy_term_update in Taxonomy Lineage 7

Implements hook_taxonomy_term_update().

File

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

Code

function lineage_taxonomy_term_update($term) {
  if (arg() != array(
    'admin',
    'structure',
    'taxonomy',
    $term->vocabulary_machine_name,
  )) {
    lineage_update_term($term);
  }
}