diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-11-23 10:41:04 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-11-23 10:41:04 +0000 |
commit | 26735ac5dd06c064bb816bcf264fbeb44ac3b0b7 (patch) | |
tree | 7d3e61703899588cf9a3dd61788965bdcf629266 /modules/book.module | |
parent | e4d791fe0d5a70867448c9fd5b2d03b9d69b98a0 (diff) | |
download | brdo-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/book.module')
-rw-r--r-- | modules/book.module | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/book.module b/modules/book.module index c431fdf47..7482bd3eb 100644 --- a/modules/book.module +++ b/modules/book.module @@ -71,7 +71,7 @@ function book_link($type, $node = 0, $main = 0) { if ($type == "system") { if (user_access("maintain books")) { - menu("node/add/book", t("book page"), "page", 0); + menu("node/add/book", t("book page"), "node_page", 0); } if (user_access("administer nodes")) { menu("admin/node/book", t("books"), "book_admin", 4); @@ -623,8 +623,9 @@ function book_render() { } } + drupal_set_title(t("Books")); print theme("header"); - print theme("box", t("Books"), "$output"); + print $output; print theme("footer"); } @@ -646,8 +647,9 @@ function book_page() { } } else { + drupal_set_title(t("Access denied")); print theme("header"); - print theme("box", t("Access denied"), message_access()); + print message_access(); print theme("footer"); } } |