function template_preprocess_book_node_export_html in Drupal 7
Same name and namespace in other branches
- 8 core/modules/book/book.module \template_preprocess_book_node_export_html()
- 6 modules/book/book.module \template_preprocess_book_node_export_html()
- 9 core/modules/book/book.module \template_preprocess_book_node_export_html()
- 10 core/modules/book/book.module \template_preprocess_book_node_export_html()
Processes variables for book-node-export-html.tpl.php.
Parameters
$variables: An associative array containing the following keys:
- node
- children
See also
File
- modules/
book/ book.module, line 1301 - Allows users to create and organize related content in an 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']->rendered;
}