function advagg_mod_libraries_preload_callback in Advanced CSS/JS Aggregation 7.2
Callback right before loadcss lib is loaded; set defaults.
Parameters
array $version_variant: Array of the library that is about to be loaded.
1 string reference to 'advagg_mod_libraries_preload_callback'
- advagg_mod_libraries_info in advagg_mod/
advagg_mod.module - Implements hook_libraries_info().
File
- advagg_mod/
advagg_mod.module, line 1562 - Advanced aggregation modifier module.
Code
function advagg_mod_libraries_preload_callback(array &$version_variant) {
// Get default options.
$default_options = advagg_mod_loadcss_js_defaults();
// Set defaults for the given configuration.
foreach ($version_variant['files']['js'] as &$value) {
$value += $default_options;
}
}