function lineage_update_all in Taxonomy Lineage 5
Same name and namespace in other branches
- 6 lineage.module \lineage_update_all()
- 7 lineage.module \lineage_update_all()
1 call to lineage_update_all()
File
- ./
lineage.module, line 23
Code
function lineage_update_all() {
$tids = array();
$result = db_query("SELECT td.tid, td.name, td.weight FROM {term_data} td LEFT JOIN {term_hierarchy} th ON th.tid = td.tid WHERE th.parent = 0");
while ($term = db_fetch_object($result)) {
$tids = lineage_update_term_r($term, array(), $tids);
}
return count($tids);
}