summaryrefslogtreecommitdiff
path: root/modules/forum.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-11-23 10:41:04 +0000
committerDries Buytaert <dries@buytaert.net>2003-11-23 10:41:04 +0000
commit26735ac5dd06c064bb816bcf264fbeb44ac3b0b7 (patch)
tree7d3e61703899588cf9a3dd61788965bdcf629266 /modules/forum.module
parente4d791fe0d5a70867448c9fd5b2d03b9d69b98a0 (diff)
downloadbrdo-26735ac5dd06c064bb816bcf264fbeb44ac3b0b7.tar.gz
brdo-26735ac5dd06c064bb816bcf264fbeb44ac3b0b7.tar.bz2
- 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.
Diffstat (limited to 'modules/forum.module')
-rw-r--r--modules/forum.module19
1 files changed, 10 insertions, 9 deletions
diff --git a/modules/forum.module b/modules/forum.module
index c1c6093ad..542449668 100644
--- a/modules/forum.module
+++ b/modules/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");
}