You are here

function advagg_css_compress_configuration in Advanced CSS/JS Aggregation 7.2

Generate the js compress configuration.

Return value

array Array($options, $description, $compressors, $functions).

2 calls to advagg_css_compress_configuration()
advagg_css_compress_admin_settings_form in advagg_css_compress/advagg_css_compress.admin.inc
Form builder; Configure advagg settings.
advagg_css_compress_advagg_get_css_aggregate_contents_alter in advagg_css_compress/advagg_css_compress.advagg.inc
Implements hook_advagg_get_css_aggregate_contents_alter().

File

advagg_css_compress/advagg_css_compress.module, line 212
Advanced aggregation css compression module.

Code

function advagg_css_compress_configuration() {
  $description = '';
  $options = array(
    -1 => t('Disable Core'),
    0 => t('Core'),
    2 => t('YUI'),
  );
  $compressors = array();
  $functions = array(
    2 => 'advagg_css_compress_yui_cssmin',
  );

  // Allow for other modules to alter this list.
  $options_desc = array(
    $options,
    $description,
  );
  drupal_alter('advagg_css_compress_configuration', $options_desc, $compressors, $functions);
  list($options, $description) = $options_desc;
  return array(
    $options,
    $description,
    $compressors,
    $functions,
  );
}