From 26735ac5dd06c064bb816bcf264fbeb44ac3b0b7 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 23 Nov 2003 10:41:04 +0000 Subject: - Committed phase 3 of JonBob's menu changes. Adds an API for modules to define titles and breadcrumbs for their pages, and updates the theme system to display them. --- modules/forum/forum.module | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'modules/forum') diff --git a/modules/forum/forum.module b/modules/forum/forum.module index c1c6093ad..542449668 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -442,16 +442,16 @@ function forum_page() { print theme("forum_display", $forums, $topics, $parents, $tid, $sortby, $forum_per_page, $offset); } else { - $message = t("Warning"); - print theme("header", $message); - print theme("box", $message, _forum_message_taxonomy()); + drupal_set_title(t("Warning")); + print theme("header"); + print _forum_message_taxonomy(); print theme("footer"); } } else { - $message = t("Access denied"); - print theme("header", $message); - print theme("box", $message, message_access()); + drupal_set_title(t("Access denied")); + print theme("header"); + print message_access(); print theme("footer"); } } @@ -513,9 +513,10 @@ function theme_forum_display($forums, $topics, $parents, $tid, $sortby, $forum_p $output = ''; } - print theme("header", $title); - print theme("breadcrumb", $breadcrumb); - print theme("box", $title, $output); + drupal_set_title($title); + drupal_set_breadcrumb($breadcrumb); + print theme("header"); + print $output; print theme("footer"); } -- cgit v1.2.3