theme_add_style
- Versions
- 4.6
theme_add_style($style= '')- 4.7
theme_add_style($path = '', $media = 'all')
Add a theme stylesheet to be included later. This is handled separately from drupal_set_html_head() to enforce the correct CSS cascading order.
Code
includes/theme.inc, line 321
<?php
function theme_add_style($style = '') {
static $styles = array();
if ($style) {
$styles[] = $style;
}
return $styles;
}
?>Login or register to post comments 