You are here

function advagg_mod_css_post_alter in Advanced CSS/JS Aggregation 7.2

Implements hook_css_post_alter().

File

advagg_mod/advagg_mod.module, line 440
Advanced aggregation modifier module.

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');
  }
}