Skip to content
Snippets Groups Projects
Commit ec6bedd0 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1843712 by jenlampton: Remove template_process_book_export_html().

parent cd8dd173
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment