function lineage_update_term in Taxonomy Lineage 5
Same name and namespace in other branches
- 6 lineage.module \lineage_update_term()
- 7 lineage.module \lineage_update_term()
1 call to lineage_update_term()
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()));
}