diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-05-18 14:58:57 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-05-18 14:58:57 +0000 |
commit | 1b291a2917a1c18194c54fce8bf0fd895db98019 (patch) | |
tree | a46473123aeb5709f8cc6f07e685fc84df90bf06 /modules/forum/forum.module | |
parent | be7bb9be9bb41c83795fa8d7fa119ce4025f2de0 (diff) | |
download | brdo-1b291a2917a1c18194c54fce8bf0fd895db98019.tar.gz brdo-1b291a2917a1c18194c54fce8bf0fd895db98019.tar.bz2 |
- Patch #18260 by Ber, m3averck et al: allow overriding of links returned by modules
Diffstat (limited to 'modules/forum/forum.module')
-rw-r--r-- | modules/forum/forum.module | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 6a27f6855..922df1eb0 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -635,8 +635,13 @@ function _forum_parent_select($tid, $title, $child_type) { return array('#type' => 'select', '#title' => $title, '#default_value' => $parent, '#options' => $options, '#description' => $description, '#required' => TRUE); } -function forum_term_path($term) { - return 'forum/'. $term->tid; +function forum_link_alter(&$node, &$links) { + foreach ($links AS $module => $link) { + if (strstr($module, 'taxonomy_term')) { + // Link back to the forum and not the taxonomy term page + $links[$module]['#href'] = str_replace('taxonomy/term', 'forum', $link['#href']); + } + } } /** |