function template_preprocess_book_node_export_html

7.x book.module template_preprocess_book_node_export_html(&$variables)
6.x book.module template_preprocess_book_node_export_html(&$variables)

Process variables for book-node-export-html.tpl.php.

The $variables array contains the following arguments:

  • $node
  • $children

See also

book-node-export-html.tpl.php

File

drupal-6.x/modules/book/book.module, line 958
Allows users to structure the pages of a site in a hierarchy or outline.

Code

function template_preprocess_book_node_export_html(&$variables) {
  $variables['depth'] = $variables['node']->book['depth'];
  $variables['title'] = check_plain($variables['node']->title);
  $variables['content'] = $variables['node']->body;
}