diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-11 15:52:13 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-11 15:52:13 +0000 |
commit | 52195a6b1dd478875a93935df27d7bcacb14f289 (patch) | |
tree | 052233b34e4c6a9a0d6268426e650500817265f6 /modules/taxonomy | |
parent | 30ae1fb5596cc59e27717262a04e6447d27cebb4 (diff) | |
download | brdo-52195a6b1dd478875a93935df27d7bcacb14f289.tar.gz brdo-52195a6b1dd478875a93935df27d7bcacb14f289.tar.bz2 |
#525622 by scor, catch, and yched: Allow Entity path callback to deal with options.
Diffstat (limited to 'modules/taxonomy')
-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, + ); } /** |