function book_node_export

cis7 book.module book_node_export($node, $children = '')
cle7 book.module book_node_export($node, $children = '')
elmsmedia7 book.module book_node_export($node, $children = '')
icor7 book.module book_node_export($node, $children = '')
meedjum_blog7 book.module book_node_export($node, $children = '')
mooc7 book.module book_node_export($node, $children = '')

Generates printer-friendly HTML for a node.

Parameters

$node: The node that will be output.

$children: (optional) All the rendered child nodes within the current node. Defaults to an empty string.

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
Traverses the book tree to build printable or exportable output.
2 string references to 'book_node_export'
book_export_html in modules/book/book.pages.inc
Generates HTML for export when invoked by book_export().
_print_generate_book in sites/all/modules/local_contrib/print/print.pages.inc
Prepare a Printer-friendly-ready node body for book pages

File

modules/book/book.module, line 1279
Allows users to create and organize related content in an outline.

Code

function book_node_export($node, $children = '') {
  $build = node_view($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));
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.