You are here

function lineage_string in Taxonomy Lineage 5

Same name and namespace in other branches
  1. 6 lineage.module \lineage_string()
  2. 7 lineage.module \lineage_string()
2 calls to lineage_string()
lineage_update_term_r in ./lineage.module
_lineage_get_parent_lineage in ./lineage.module

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";
}