book_content
- Versions
- 4.6 – 5
book_content($node, $teaser = FALSE)
Code
modules/book.module, line 374
<?php
function book_content($node, $teaser = FALSE) {
$op = $_POST['op'];
// Always display the most recently approved revision of a node
// (if any) unless we have to display this page in the context of
// the moderation queue.
if ($op != t('Preview') && $node->moderate && arg(0) != 'queue') {
$revision = book_revision_load($node, array('moderate' => 0, 'status' => 1));
if ($revision) {
$node = $revision;
}
}
// Extract the page body.
$node = node_prepare($node, $teaser);
return $node;
}
?>Login or register to post comments 