template_process_html

Versions
7
template_process_html(&$variables)

Process variables for html.tpl.php

Perform final addition and modification of variables before passing into the template. To customize these variables, call drupal_render() on elements in $variables['page'] during THEME_preprocess_page().

See also

template_preprocess_html()

@see html.tpl.php

Code

includes/theme.inc, line 2353

<?php
function template_process_html(&$variables) {
  // Render page_top and page_bottom into top level variables.
  $variables['page_top'] = drupal_render($variables['page']['page_top']);
  $variables['page_bottom'] = drupal_render($variables['page']['page_bottom']);
  // Place the rendered HTML for the page body into a top level variable.
  $variables['page']              = $variables['page']['#children'];
  $variables['page_bottom'] .= drupal_get_js('footer');

  $variables['head']    = drupal_get_html_head();
  $variables['css']     = drupal_add_css();
  $variables['styles']  = drupal_get_css();
  $variables['scripts'] = drupal_get_js();
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.