summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-24 05:13:44 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-24 05:13:44 +0000
commitcd7b8f099996c46a58b354ae262852d222306e74 (patch)
tree1e7725d67472a1c203ce418f90e2fb48716efd37 /modules/taxonomy/taxonomy.module
parentdec6514c3b2d889c3a9fb19731e49e83d554392c (diff)
downloadbrdo-cd7b8f099996c46a58b354ae262852d222306e74.tar.gz
brdo-cd7b8f099996c46a58b354ae262852d222306e74.tar.bz2
#320331 by Dave Reid, dww, John Morahan, cwgordon7, moshe weitzman, c960657, and smoothify: Turn custom_url_rewrite_inbound() and custom_url_rewrite_outbound() into hooks.
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r--modules/taxonomy/taxonomy.module19
1 files changed, 1 insertions, 18 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index b04336fa0..613383a90 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -164,23 +164,6 @@ function taxonomy_theme() {
}
/**
- * For vocabularies not maintained by taxonomy.module, give the maintaining
- * module a chance to provide a path for terms in that vocabulary.
- *
- * @param $term
- * A term object.
- * @return
- * An internal Drupal path.
- */
-function taxonomy_term_path($term) {
- $vocabulary = taxonomy_vocabulary_load($term->vid);
- if ($vocabulary->module != 'taxonomy' && $path = module_invoke($vocabulary->module, 'term_path', $term)) {
- return $path;
- }
- return 'taxonomy/term/' . $term->tid;
-}
-
-/**
* Implement hook_menu().
*/
function taxonomy_menu() {
@@ -1103,7 +1086,7 @@ function taxonomy_field_formatter_info() {
function theme_field_formatter_taxonomy_term_link($variables) {
$term = $variables['element']['#item']['taxonomy_term'];
$attributes = empty($variables['link_options']) ? array() : $variables['link_options'];
- return l($term->name, taxonomy_term_path($term), $attributes);
+ return l($term->name, 'taxonomy/term/' . $term->tid, $attributes);
}
/**