summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-02-01 14:40:20 +0000
committerDries Buytaert <dries@buytaert.net>2006-02-01 14:40:20 +0000
commit1f206ca2fe5d426dcde696c1d580cf081f2c3213 (patch)
tree1375de596572e0e52e19c041af740e80d31043c9
parentbfb535f63e52283c05c88f4414e1ae2a5271cecd (diff)
downloadbrdo-1f206ca2fe5d426dcde696c1d580cf081f2c3213.tar.gz
brdo-1f206ca2fe5d426dcde696c1d580cf081f2c3213.tar.bz2
- Patch #47066 by Zen: removed dead code.
-rw-r--r--modules/book.module10
-rw-r--r--modules/book/book.module10
2 files changed, 6 insertions, 14 deletions
diff --git a/modules/book.module b/modules/book.module
index 9260c366a..250d8e4f6 100644
--- a/modules/book.module
+++ b/modules/book.module
@@ -415,12 +415,8 @@ function book_next($node) {
* page in the context of the moderation queue.
*/
function book_content($node, $teaser = FALSE) {
- $op = $_POST['op'];
-
- // Extract the page body.
- $node = node_prepare($node, $teaser);
-
- return $node;
+ // Return the page body.
+ return node_prepare($node, $teaser);
}
/**
@@ -430,7 +426,7 @@ function book_content($node, $teaser = FALSE) {
* book with extra links to the previous and next pages.
*/
function book_view(&$node, $teaser = FALSE, $page = FALSE) {
- $node = book_content($node, $teaser);
+ $node = node_prepare($node, $teaser);
}
/**
diff --git a/modules/book/book.module b/modules/book/book.module
index 9260c366a..250d8e4f6 100644
--- a/modules/book/book.module
+++ b/modules/book/book.module
@@ -415,12 +415,8 @@ function book_next($node) {
* page in the context of the moderation queue.
*/
function book_content($node, $teaser = FALSE) {
- $op = $_POST['op'];
-
- // Extract the page body.
- $node = node_prepare($node, $teaser);
-
- return $node;
+ // Return the page body.
+ return node_prepare($node, $teaser);
}
/**
@@ -430,7 +426,7 @@ function book_content($node, $teaser = FALSE) {
* book with extra links to the previous and next pages.
*/
function book_view(&$node, $teaser = FALSE, $page = FALSE) {
- $node = book_content($node, $teaser);
+ $node = node_prepare($node, $teaser);
}
/**