From 1f206ca2fe5d426dcde696c1d580cf081f2c3213 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 1 Feb 2006 14:40:20 +0000 Subject: - Patch #47066 by Zen: removed dead code. --- modules/book.module | 10 +++------- modules/book/book.module | 10 +++------- 2 files changed, 6 insertions(+), 14 deletions(-) (limited to 'modules') 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); } /** -- cgit v1.2.3