Same name in other branches
- 5.0.x advagg_mod/advagg_mod.module \advagg_mod_css_alter()
- 6.0.x advagg_mod/advagg_mod.module \advagg_mod_css_alter()
- 8.x-2.x advagg_mod/advagg_mod.module \advagg_mod_css_alter()
- 8.x-3.x advagg_mod/advagg_mod.module \advagg_mod_css_alter()
- 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);
}
}