summaryrefslogtreecommitdiff
path: root/modules/title.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/title.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/title.module')
-rw-r--r--modules/title.module6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/title.module b/modules/title.module
index 9206f3605..8de104f93 100644
--- a/modules/title.module
+++ b/modules/title.module
@@ -57,14 +57,16 @@ function title_page() {
$output .= theme("table", $header, $rows);
$output .= "</div>";
+ drupal_set_title(t("Matching Posts"));
print theme("header");
- print theme("box", t("Matching Posts"), $output);
+ print $output;
print theme("footer");
}
}
else {
+ drupal_set_title(t("Access denied"));
print theme("header");
- print theme("box", t("Access denied"), message_access());
+ print message_access();
print theme("footer");
}
}