You are here

function hook_advagg_get_css_aggregate_contents_alter in Advanced CSS/JS Aggregation 7.2

Allow other modules to modify this aggregates contents.

Parameters

string $data: Raw CSS data.

array $files: List of files used to create this aggregate.

array $aggregate_settings: An associative array of hooks and settings used.

See also

advagg_get_css_aggregate_contents()

advagg_css_compress_advagg_get_css_aggregate_contents_alter()

Related topics

2 functions implement hook_advagg_get_css_aggregate_contents_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

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().
advagg_relocate_advagg_get_css_aggregate_contents_alter in advagg_relocate/advagg_relocate.advagg.inc
Implements hook_advagg_get_css_aggregate_contents_alter().
1 invocation of hook_advagg_get_css_aggregate_contents_alter()
advagg_get_css_aggregate_contents in ./advagg.missing.inc
Given a list of files, grab their contents and glue it into one big string.

File

./advagg.api.php, line 206
Hooks provided by the AdvAgg module.

Code

function hook_advagg_get_css_aggregate_contents_alter(&$data, array $files, array $aggregate_settings) {
  if (empty($aggregate_settings['variables']['advagg_css_compressor'])) {
    return;
  }
  if ($aggregate_settings['variables']['advagg_css_compressor'] == 2) {
    advagg_css_compress_yui_cssmin($data);
  }
}