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/book.module | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'modules/book.module') 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"); } } -- cgit v1.2.3