diff options
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r-- | modules/taxonomy/taxonomy.module | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 478a3fffe..d976c4982 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -87,7 +87,7 @@ function taxonomy_entity_info() { 'label' => t('Taxonomy term'), 'controller class' => 'TaxonomyTermController', 'base table' => 'taxonomy_term_data', - 'path callback' => 'taxonomy_term_path', + 'uri callback' => 'taxonomy_term_uri', 'fieldable' => TRUE, 'object keys' => array( 'id' => 'tid', @@ -130,10 +130,12 @@ function taxonomy_entity_info() { } /** - * Entity path callback. + * Entity uri callback. */ -function taxonomy_term_path($term) { - return 'taxonomy/term/' . $term->tid; +function taxonomy_term_uri($term) { + return array( + 'path' => 'taxonomy/term/' . $term->tid, + ); } /** |