function enterprise_base_taxonomy_term_uri in Enterprise Base 7.3
Rewrite taxonomy term uris. Allow other modules to modify specific vocabularies.
Parameters
type $term:
Return value
type
1 string reference to 'enterprise_base_taxonomy_term_uri'
- enterprise_base_entity_info_alter in ./
enterprise_base.module - Implements hook_entity_info_alter().
File
- ./
enterprise_base.module, line 65
Code
function enterprise_base_taxonomy_term_uri($term) {
$url = array(
'path' => 'taxonomy/term/' . $term->tid,
);
// Allow other modules to set the path.
drupal_alter($term->vocabulary_machine_name . '_uri', $url, $term);
return $url;
}