From ec6bedd0a8685bad6e65c0009723a79066478dbd Mon Sep 17 00:00:00 2001 From: webchick Date: Sun, 2 Dec 2012 07:27:01 -0800 Subject: [PATCH] Issue #1843712 by jenlampton: Remove template_process_book_export_html(). --- core/modules/book/book.module | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/core/modules/book/book.module b/core/modules/book/book.module index c661809d6d8..f606e484372 100644 --- a/core/modules/book/book.module +++ b/core/modules/book/book.module @@ -1213,18 +1213,10 @@ function template_preprocess_book_export_html(&$variables) { $variables['head'] = drupal_get_html_head(); // HTML element attributes. - $variables['html_attributes']['lang'] = $language_interface->langcode; - $variables['html_attributes']['dir'] = $language_interface->direction ? 'rtl' : 'ltr'; -} - -/** - * Processes variables for book-export-html.tpl.php. - * - * @see book-export-html.tpl.php - */ -function template_process_book_export_html(&$variables) { - // Flatten out html_attributes - $variables['html_attributes'] = new Attribute($variables['html_attributes']); + $attributes = array(); + $attributes['lang'] = $language_interface->langcode; + $attributes['dir'] = $language_interface->direction ? 'rtl' : 'ltr'; + $variables['html_attributes'] = new Attribute($attributes); } /**