function template_preprocess_book_export_html

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

Processes variables for book-export-html.tpl.php.

Parameters

$variables: An associative array containing the following keys:

  • title
  • contents
  • depth

See also

book-export-html.tpl.php

File

drupal-7.x/modules/book/book.module, line 1215
Allows users to create and organize related content in an outline.

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