summaryrefslogtreecommitdiff
path: root/modules/book.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-11-09 23:27:22 +0000
committerDries Buytaert <dries@buytaert.net>2003-11-09 23:27:22 +0000
commit951b553a9887df92d93ecc42e7e83ca568e26aae (patch)
treec35a2ae7f53ecbd83e6ff52b847a6c469e5a438a /modules/book.module
parent00ee7f747b0920f2b8375b494930b19a25030a57 (diff)
downloadbrdo-951b553a9887df92d93ecc42e7e83ca568e26aae.tar.gz
brdo-951b553a9887df92d93ecc42e7e83ca568e26aae.tar.bz2
- Committed stage 2 of the theme system improvements! Patch by CodeMonkeyX.
Diffstat (limited to 'modules/book.module')
-rw-r--r--modules/book.module26
1 files changed, 13 insertions, 13 deletions
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");
}
}