function advagg_file_aggregation_enabled

cis7 advagg.module advagg_file_aggregation_enabled($type)
cle7 advagg.module advagg_file_aggregation_enabled($type)
elmsmedia7 advagg.module advagg_file_aggregation_enabled($type)
icor7 advagg.module advagg_file_aggregation_enabled($type)
meedjum_blog7 advagg.module advagg_file_aggregation_enabled($type)
mooc7 advagg.module advagg_file_aggregation_enabled($type)

Given the type lets us know if advagg is enabled or disabled.

Parameters

string $type: css or js.

Return value

bool TRUE or FALSE

2 calls to advagg_file_aggregation_enabled()
_advagg_aggregate_css in sites/all/modules/ulmus/advagg/advagg.module
Default callback to aggregate CSS files and inline content.
_advagg_aggregate_js in sites/all/modules/ulmus/advagg/advagg.module
Default callback to aggregate JavaScript files.

File

sites/all/modules/ulmus/advagg/advagg.module, line 1909
Advanced CSS/JS aggregation module.

Code

function advagg_file_aggregation_enabled($type) {
  if (defined('MAINTENANCE_MODE') && MAINTENANCE_MODE == 'update') {
    return FALSE;
  }
  if (isset($_GET['advagg']) && $_GET['advagg'] == 0 && user_access('bypass advanced aggregation')) {
    return FALSE;
  }
  if ($type == 'css') {
    return variable_get('preprocess_css', FALSE);
  }
  if ($type == 'js') {
    return variable_get('preprocess_js', FALSE);
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.