You are here

function template_preprocess_book_export_html in Drupal 6

Same name and namespace in other branches
  1. 8 core/modules/book/book.module \template_preprocess_book_export_html()
  2. 7 modules/book/book.module \template_preprocess_book_export_html()
  3. 9 core/modules/book/book.module \template_preprocess_book_export_html()

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

The $variables array contains the following arguments:

  • $title
  • $contents
  • $depth

See also

book-export-html.tpl.php

File

modules/book/book.module, line 881
Allows users to structure the pages of a site in a hierarchy or 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();
}