function book_node_export

7.x book.module book_node_export($node, $children = '')
6.x book.module book_node_export($node, $children = '')

Generates printer-friendly HTML for a node.

Parameters

$node: The node to generate output for.

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

Return value

The HTML generated for the given node.

See also

book_export_traverse()

1 call to book_node_export()
book_export_traverse in drupal-6.x/modules/book/book.module
Traverse the book tree to build printable or exportable output.
1 string reference to 'book_node_export'
book_export_html in drupal-6.x/modules/book/book.pages.inc
This function is called by book_export() to generate HTML for export.

File

drupal-6.x/modules/book/book.module, line 940
Allows users to structure the pages of a site in a hierarchy or outline.

Code

function book_node_export($node, $children = '') {

  $node->build_mode = NODE_BUILD_PRINT;
  $node = node_build_content($node, FALSE, FALSE);
  $node->body = drupal_render($node->content);

  return theme('book_node_export_html', $node, $children);
}