function _print_node_visitor_html_pre in Printer, email and PDF versions 5.3
Same name and namespace in other branches
- 5.4 print.pages.inc \_print_node_visitor_html_pre()
Generates printer-friendly HTML for a node. This function is a 'pre-node' visitor function for book_recurse()
My own version of book_node_visitor_html_pre so that CCK pages in book nodes come out right
Parameters
$node: the node to generate output for.
$depth: the depth of the given node in the hierarchy. This is used only for generating output.
$nid: the node id (nid) of the given node. This is used only for generating output.
Return value
the HTML generated for the given node.
1 string reference to '_print_node_visitor_html_pre'
- _print_generate_book in ./
print.pages.inc - Prepare a Printer-friendly-ready node body for book pages
File
- ./
print.pages.inc, line 682 - Contains the functions to generate Printer-friendly pages.
Code
function _print_node_visitor_html_pre($node, $depth, $nid) {
$node = node_build_content($node, FALSE, TRUE);
unset($node->content['book_navigation']);
$output .= "<div id='node-{$node->nid}' class='section-{$depth}'>\n";
$output .= "<h1 class='book-heading'>" . check_plain($node->title) . "</h1>\n";
$output .= drupal_render($node->content);
return $output;
}