You are here

function css_editor_init in CSS Editor 7

Implements hook_init().

File

./css_editor.module, line 6

Code

function css_editor_init() {
  global $theme;
  $enabled_themes = variable_get('css_editor_enabled_themes', array());
  if (isset($enabled_themes[$theme]) && $enabled_themes[$theme] && !isset($_REQUEST['theme'])) {
    drupal_add_css(theme_get_setting('css', $theme), array(
      'type' => 'inline',
      'weight' => 9999,
      'group' => CSS_THEME,
    ));
  }
}