book_node_export
modules/book/book.module, строка 940
- Версии
- 6
book_node_export($node, $children = '')
Generates printer-friendly HTML for a node.
See also
Параметры
$node
The node to generate output for.
$children
All the rendered child nodes within the current node.
Возвращаемое значение
The HTML generated for the given node.
Код
<?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);
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии