summaryrefslogtreecommitdiff
path: root/modules/forum/forum.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-05-18 14:58:57 +0000
committerDries Buytaert <dries@buytaert.net>2006-05-18 14:58:57 +0000
commit1b291a2917a1c18194c54fce8bf0fd895db98019 (patch)
treea46473123aeb5709f8cc6f07e685fc84df90bf06 /modules/forum/forum.module
parentbe7bb9be9bb41c83795fa8d7fa119ce4025f2de0 (diff)
downloadbrdo-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.module9
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']);
+ }
+ }
}
/**