function lineage_string in Taxonomy Lineage 5
Same name and namespace in other branches
- 6 lineage.module \lineage_string()
- 7 lineage.module \lineage_string()
2 calls to lineage_string()
File
- ./
lineage.module, line 71
Code
function lineage_string($term) {
// add 10 to the weight cause negative numbers don't sort the same
// in strong form as they do numerically.
return sprintf("%02d", $term->weight + 10) . $term->name . "\n";
}