| Versionen | |
|---|---|
| drupal6 – drupal7 | book_node_export($node, $children = '') |
Generates printer-friendly HTML for a node.
$node The node to generate output for.
$children All the rendered child nodes within the current node.
The HTML generated for the given node.
modules/
<?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);
}
?>
Kommentare
Kommentar hinzufügen