function advagg_mod_css_alter

nittany7 advagg_mod.module advagg_mod_css_alter(&$css)
cis7 advagg_mod.module advagg_mod_css_alter(&$css)
mooc7 advagg_mod.module advagg_mod_css_alter(&$css)

Implements hook_css_alter().

File

modules/contrib/advagg/advagg_mod/advagg_mod.module, line 184
Advanced aggregation modifier module.

Code

function advagg_mod_css_alter(&$css) {
  if (module_exists('advagg') && !advagg_enabled()) {
    return;
  }

  // Do not use preprocessing if CSS is inlined.
  if (advagg_mod_inline_page()) {
    advagg_mod_inline_css($css);
    return;
  }

  // Force all CSS to be preprocessed.
  if (variable_get('advagg_mod_css_preprocess', ADVAGG_MOD_CSS_PREPROCESS)) {
    foreach ($css as $name => &$values) {
      $values['preprocess'] = TRUE;
    }
  }
}