You are here

function book_node_export in Drupal 6

Same name and namespace in other branches
  1. 7 modules/book/book.module \book_node_export()

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 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 modules/book/book.pages.inc
This function is called by book_export() to generate HTML for export.

File

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);
}