book_node_export

function book_node_export

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()

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!book!book.module/function/book_node_export/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部