Same name in other branches
  1. 8.x-2.x advagg_bundler/advagg_bundler.module \advagg_bundler_enabled()

Returns TRUE if the bundler will run.

3 calls to advagg_bundler_enabled()
advagg_bundler_advagg_build_aggregate_plans_alter in advagg_bundler/advagg_bundler.advagg.inc
Implements hook_advagg_build_aggregate_plans_alter().
advagg_bundler_form_advagg_admin_settings_form_alter in advagg_bundler/advagg_bundler.module
Implements hook_form_FORM_ID_alter().
advagg_bundler_init in advagg_bundler/advagg_bundler.module
Implements hook_init().

File

advagg_bundler/advagg_bundler.module, line 115

Code

function advagg_bundler_enabled() {
    if (variable_get('advagg_bundler_active', ADVAGG_BUNDLER_ACTIVE) && (variable_get('advagg_bundler_max_css', ADVAGG_BUNDLER_MAX_CSS) || variable_get('advagg_bundler_max_js', ADVAGG_BUNDLER_MAX_JS))) {
        return TRUE;
    }
}