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
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.