book_node_export

Definition

book_node_export($node, $children = '')
modules/book/book.module, line 940

Description

Generates printer-friendly HTML for a node.

See also

book_export_traverse()

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.

Code

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

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.