You are here

function lineage_taxonomy_term_insert in Taxonomy Lineage 7

Implements hook_taxonomy_term_insert().

File

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

Code

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