diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 1d551329d6fe8f26d6c892b18a118b65dc54277c..a84bfa041412cba0c3f695619c0661762edad57f 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -645,18 +645,8 @@ 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_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. We'll only - // do this if the taxonomy term in question belongs to forums. - $tid = str_replace('taxonomy/term/', '', $link['href']); - $term = taxonomy_get_term($tid); - if ($term->vid == _forum_get_vid()) { - $links[$module]['href'] = str_replace('taxonomy/term', 'forum', $link['href']); - } - } - } +function forum_term_path($term) { + return 'forum/'. $term->tid; } /**