function seven_preprocess_html
Same name in other branches
- 9 core/themes/seven/seven.theme \seven_preprocess_html()
- 8.9.x core/themes/seven/seven.theme \seven_preprocess_html()
Override or insert variables into the html template.
1 call to seven_preprocess_html()
- seven_preprocess_maintenance_page in themes/
seven/ template.php - Override or insert variables into the maintenance page template.
File
-
themes/
seven/ template.php, line 18
Code
function seven_preprocess_html(&$vars) {
// Add conditional CSS for IE8 and below.
drupal_add_css(path_to_theme() . '/ie.css', array(
'group' => CSS_THEME,
'browsers' => array(
'IE' => 'lte IE 8',
'!IE' => FALSE,
),
'weight' => 999,
'preprocess' => FALSE,
));
// Add conditional CSS for IE7 and below.
drupal_add_css(path_to_theme() . '/ie7.css', array(
'group' => CSS_THEME,
'browsers' => array(
'IE' => 'lte IE 7',
'!IE' => FALSE,
),
'weight' => 999,
'preprocess' => FALSE,
));
// Add conditional CSS for IE6.
drupal_add_css(path_to_theme() . '/ie6.css', array(
'group' => CSS_THEME,
'browsers' => array(
'IE' => 'lte IE 6',
'!IE' => FALSE,
),
'weight' => 999,
'preprocess' => FALSE,
));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.