From d9cb4522bd0f445eef49316a5c9dd798e2803754 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 15 Sep 2003 15:58:20 +0000 Subject: - 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. --- modules/forum.module | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'modules/forum.module') 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 .= ""; theme("header"); - theme("path", $trail); + theme("breadcrumb", $trail); theme("box", $title, $output); theme("footer"); } -- cgit v1.2.3