function advagg_mod_css_alter in Advanced CSS/JS Aggregation 7.2
Same name and namespace in other branches
- 8.4 advagg_mod/advagg_mod.module \advagg_mod_css_alter()
- 8.2 advagg_mod/advagg_mod.module \advagg_mod_css_alter()
- 8.3 advagg_mod/advagg_mod.module \advagg_mod_css_alter()
Implements hook_css_alter().
File
- advagg_mod/
advagg_mod.module, line 420 - Advanced aggregation modifier module.
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);
}
}