Same name and namespace in other branches
  1. 4.7.x includes/theme.inc \theme_add_style()

Add a theme stylesheet to be included later. This is handled separately from drupal_set_html_head() to enforce the correct CSS cascading order.

1 call to theme_add_style()
init_theme in includes/theme.inc
Initialize the theme system by loading the theme.

File

includes/theme.inc, line 321
The theme system, which controls the output of Drupal.

Code

function theme_add_style($style = '') {
  static $styles = array();
  if ($style) {
    $styles[] = $style;
  }
  return $styles;
}