function taxonomy_term_path in Drupal 4
Same name and namespace in other branches
- 5 modules/taxonomy/taxonomy.module \taxonomy_term_path()
- 6 modules/taxonomy/taxonomy.module \taxonomy_term_path()
1 call to taxonomy_term_path()
- taxonomy_link in modules/
taxonomy.module - Implementation of hook_link().
File
- modules/
taxonomy.module, line 38 - Enables the organization of content into categories.
Code
function taxonomy_term_path($term) {
$vocabulary = taxonomy_get_vocabulary($term->vid);
if ($vocabulary->module != 'taxonomy' && ($path = module_invoke($vocabulary->module, 'term_path', $term))) {
return $path;
}
return 'taxonomy/term/' . $term->tid;
}