function book_node_view
Same name in other branches
- 9 core/modules/book/book.module \book_node_view()
- 8.9.x core/modules/book/book.module \book_node_view()
- 10 core/modules/book/book.module \book_node_view()
- 11.x core/modules/book/book.module \book_node_view()
Implements hook_node_view().
File
-
modules/
book/ book.module, line 887
Code
function book_node_view($node, $view_mode) {
if ($view_mode == 'full') {
if (!empty($node->book['bid']) && empty($node->in_preview)) {
$node->content['book_navigation'] = array(
'#markup' => theme('book_navigation', array(
'book_link' => $node->book,
)),
'#weight' => 100,
);
}
}
if ($view_mode != 'rss') {
book_node_view_link($node, $view_mode);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.