You are here

function lineage_update_term in Taxonomy Lineage 5

Same name and namespace in other branches
  1. 6 lineage.module \lineage_update_term()
  2. 7 lineage.module \lineage_update_term()
1 call to lineage_update_term()
lineage_taxonomy in ./lineage.module

File

./lineage.module, line 35

Code

function lineage_update_term($term) {
  if (is_array($term)) {
    $term = (object) $term;
  }
  $base = _lineage_get_parent_lineage($term->parent);
  return count(lineage_update_term_r($term, $base, array()));
}