Same name in other branches
  1. 5.0.x advagg_mod/advagg_mod.module \advagg_mod_css_alter()
  2. 6.0.x advagg_mod/advagg_mod.module \advagg_mod_css_alter()
  3. 8.x-2.x advagg_mod/advagg_mod.module \advagg_mod_css_alter()
  4. 8.x-3.x advagg_mod/advagg_mod.module \advagg_mod_css_alter()
  5. 8.x-4.x advagg_mod/advagg_mod.module \advagg_mod_css_alter()

Implements hook_css_alter().

Fichier

advagg_mod/advagg_mod.module, line 420

Code

function advagg_mod_css_alter(&$css) {
    if (!module_exists('advagg') || !advagg_enabled()) {
        return;
    }
    // Force all CSS to be preprocessed.
    if (variable_get('advagg_mod_css_preprocess', ADVAGG_MOD_CSS_PREPROCESS)) {
        foreach ($css as &$values) {
            if (!empty($values['preprocess_lock'])) {
                continue;
            }
            $values['preprocess'] = TRUE;
        }
        unset($values);
    }
}