summaryrefslogtreecommitdiff
path: root/modules/forum.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-09-15 15:58:20 +0000
committerDries Buytaert <dries@buytaert.net>2003-09-15 15:58:20 +0000
commitd9cb4522bd0f445eef49316a5c9dd798e2803754 (patch)
tree8bfbeb2c292df21f15252ae47c631ec026934c13 /modules/forum.module
parent7e60456ca98e9faa12fcf2ea56ee57f31c6450af (diff)
downloadbrdo-d9cb4522bd0f445eef49316a5c9dd798e2803754.tar.gz
brdo-d9cb4522bd0f445eef49316a5c9dd798e2803754.tar.bz2
- Book module improvements. This commit changes the behavior of the "view"
hook. See mailing list for details; search for a mail with the subject: '[IMPORTANT] behavior of "view" hook changed'. Modified patch from Nick.
Diffstat (limited to 'modules/forum.module')
-rw-r--r--modules/forum.module12
1 files changed, 5 insertions, 7 deletions
diff --git a/modules/forum.module b/modules/forum.module
index 3ac6dc2ca..1cffa5b77 100644
--- a/modules/forum.module
+++ b/modules/forum.module
@@ -153,17 +153,15 @@ function forum_view($node, $main = 0) {
}
$voc = taxonomy_get_vocabulary($term_data->vid);
- $trail[] = l(t("Home"), NULL);
- $trail[] = l(t("Forums"), "forum");
- $trail[] = l($term_data->name, "forum/$term_data->tid");
-
- theme("path", $trail);
+ $node->trail[] = l(t("Home"), NULL);
+ $node->trail[] = l(t("Forums"), "forum");
+ $node->trail[] = l($term_data->name, "forum/$term_data->tid");
}
$node->teaser = check_output($node->teaser);
$node->body = check_output($node->body);
- theme("node", $node, $main);
+ return $node;
}
function forum_validate(&$node) {
@@ -490,7 +488,7 @@ function forum_theme_display($forums, $topics, $parents, $tid, $sortby, $forum_p
$output .= "</div>";
theme("header");
- theme("path", $trail);
+ theme("breadcrumb", $trail);
theme("box", $title, $output);
theme("footer");
}