function template_preprocess_book_export_html
Same name in other branches
- 9 core/modules/book/book.module \template_preprocess_book_export_html()
- 8.9.x core/modules/book/book.module \template_preprocess_book_export_html()
- 10 core/modules/book/book.module \template_preprocess_book_export_html()
- 11.x core/modules/book/book.module \template_preprocess_book_export_html()
Processes variables for book-export-html.tpl.php.
Parameters
$variables: An associative array containing the following keys:
- title
- contents
- depth
See also
File
-
modules/
book/ book.module, line 1218
Code
function template_preprocess_book_export_html(&$variables) {
global $base_url, $language;
$variables['title'] = check_plain($variables['title']);
$variables['base_url'] = $base_url;
$variables['language'] = $language;
$variables['language_rtl'] = $language->direction == LANGUAGE_RTL;
$variables['head'] = drupal_get_html_head();
$variables['dir'] = $language->direction ? 'rtl' : 'ltr';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.