diff options
-rw-r--r-- | modules/book.module | 10 | ||||
-rw-r--r-- | modules/book/book.module | 10 |
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); } /** |