| 5 taxonomy.module | taxonomy_term_path($term) |
| 6 taxonomy.module | taxonomy_term_path($term) |
For vocabularies not maintained by taxonomy.module, give the maintaining module a chance to provide a path for terms in that vocabulary.
Parameters
$term: A term object.
Return value
An internal Drupal path.
1 call to taxonomy_term_path()
File
- modules/
taxonomy/ taxonomy.module, line 59 - 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;
}
Login or register to post comments