book_view
- Versions
- 4.6 – 4.7
book_view(&$node, $teaser = FALSE, $page = FALSE)
Implementation of hook_view().
If not displayed on the main page, we render the node as a page in the book with extra links to the previous and next pages.
Code
modules/book.module, line 400
<?php
function book_view(&$node, $teaser = FALSE, $page = FALSE) {
$node = book_content($node, $teaser);
if (!$teaser && $node->moderate) {
$node->body .= '<div class="log"><div class="title">'. t('Log') .':</div>'. check_output($node->log, $node->format) .'</div>';
}
}
?>Login or register to post comments 