book_node_export

Versions
6 – 7
book_node_export($node, $children = '')

Generates printer-friendly HTML for a node.

See also

book_export_traverse()

Parameters

$node The node that will be output.

$children All the rendered child nodes within the current node.

Return value

The HTML generated for the given node.

▾ 1 function calls book_node_export()

book_export_traverse in modules/book/book.module
Traverse the book tree to build printable or exportable output.

Code

modules/book/book.module, line 1114

<?php
function book_node_export($node, $children = '') {
  $build = node_build($node, 'print');
  unset($build['#theme']);
  // @todo Rendering should happen in the template using render().
  $node->rendered = drupal_render($build);

  return theme('book_node_export_html', array('node' => $node, 'children' => $children));
}
?>
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.