function template_preprocess_book_node_export_html

Same name in other branches
  1. 9 core/modules/book/book.module \template_preprocess_book_node_export_html()
  2. 8.9.x core/modules/book/book.module \template_preprocess_book_node_export_html()
  3. 10 core/modules/book/book.module \template_preprocess_book_node_export_html()
  4. 11.x 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

book-node-export-html.tpl.php

File

modules/book/book.module, line 1301

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.