From 951b553a9887df92d93ecc42e7e83ca568e26aae Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 9 Nov 2003 23:27:22 +0000 Subject: - Committed stage 2 of the theme system improvements! Patch by CodeMonkeyX. --- modules/book.module | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'modules/book.module') diff --git a/modules/book.module b/modules/book.module index ec8555095..5b94c60fe 100644 --- a/modules/book.module +++ b/modules/book.module @@ -390,7 +390,7 @@ function book_view($node, $main = 0) { */ if ($main) { - theme("node", $node, $main); + print theme("node", $node, $main); } else { if ($node->moderate) { @@ -400,10 +400,10 @@ function book_view($node, $main = 0) { if (arg(1) == "view") { $node = book_navigation($node); // Print the breadcrumb - theme("breadcrumb", $node->breadcrumb); + print theme("breadcrumb", $node->breadcrumb); } // Print the node - theme("node", $node, $main); + print theme("node", $node, $main); } } @@ -441,8 +441,8 @@ function book_show($node, $cid) { /* ** View the node */ - theme("breadcrumb", $node->breadcrumb); - theme("node", $node, 0); + print theme("breadcrumb", $node->breadcrumb); + print theme("node", $node, 0); } else { @@ -621,9 +621,9 @@ function book_render() { } } - theme("header"); - theme("box", t("Books"), "$output"); - theme("footer"); + print theme("header"); + print theme("box", t("Books"), "$output"); + print theme("footer"); } function book_page() { @@ -632,9 +632,9 @@ function book_page() { switch (arg(1)) { case "view": $node = node_load(array("nid" => arg(2))); - theme("header"); + print theme("header"); book_show($node, arg(3)); - theme("footer"); + print theme("footer"); break; case "print": print book_print(arg(2), $depth = 1); @@ -644,9 +644,9 @@ function book_page() { } } else { - theme("header"); - theme("box", t("Access denied"), message_access()); - theme("footer"); + print theme("header"); + print theme("box", t("Access denied"), message_access()); + print theme("footer"); } } -- cgit v1.2.3