summaryrefslogtreecommitdiff
path: root/modules/taxonomy
diff options
context:
space:
mode:
Diffstat (limited to 'modules/taxonomy')
-rw-r--r--modules/taxonomy/taxonomy.module8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 1c9378613..bcfc1c0e9 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -87,6 +87,7 @@ function taxonomy_entity_info() {
'label' => t('Taxonomy term'),
'controller class' => 'TaxonomyTermController',
'base table' => 'taxonomy_term_data',
+ 'path callback' => 'taxonomy_term_path',
'fieldable' => TRUE,
'object keys' => array(
'id' => 'tid',
@@ -129,6 +130,13 @@ function taxonomy_entity_info() {
}
/**
+ * Entity path callback.
+ */
+function taxonomy_term_path($term) {
+ return 'taxonomy/term/' . $term->tid;
+}
+
+/**
* Return nodes attached to a term across all field instances.
*
* This function requires taxonomy module to be maintaining its own tables,