Implements hook_css_post_alter().

Fichier

advagg_mod/advagg_mod.module, line 440

Code

function advagg_mod_css_post_alter(&$css) {
    if (!module_exists('advagg') || !advagg_enabled()) {
        return;
    }
    // Change sort order so aggregates do not get split up.
    if (variable_get('advagg_mod_css_adjust_sort_external', ADVAGG_MOD_CSS_ADJUST_SORT_EXTERNAL) || variable_get('advagg_mod_css_adjust_sort_inline', ADVAGG_MOD_CSS_ADJUST_SORT_INLINE) || variable_get('advagg_mod_css_adjust_sort_browsers', ADVAGG_MOD_CSS_ADJUST_SORT_BROWSERS)) {
        advagg_mod_sort_css_js($css, 'css');
    }
}