function advagg_rebuild_bundle in Advanced CSS/JS Aggregation 6
Same name and namespace in other branches
- 7 advagg.module \advagg_rebuild_bundle()
Rebuild a bundle.
Parameters
$bundle_md5: Bundle's machine name.
$counter: Counter value.
$force: Rebuild even if file already exists.
2 calls to advagg_rebuild_bundle()
- advagg_admin_rebuild_bundles in ./
advagg.admin.inc - Rebuild bundles.
- advagg_missing_regenerate in ./
advagg.missing.inc - regenerates a missing css file.
1 string reference to 'advagg_rebuild_bundle'
- advagg_flush_caches in ./
advagg.module - Implementation of hook_flush_caches().
File
- ./
advagg.module, line 1683 - Advanced CSS/JS aggregation module
Code
function advagg_rebuild_bundle($bundle_md5, $counter = '', $force = FALSE) {
global $conf, $_advagg;
list($filetype, $files) = advagg_get_files_in_bundle($bundle_md5);
$conf['advagg_async_generation'] = FALSE;
$good = advagg_css_js_file_builder($filetype, $files, '', $counter, $force, $bundle_md5);
if (!$good) {
watchdog('advagg', 'This bundle could not be generated correctly. Bundle MD5: %md5', array(
'%md5' => $bundle_md5,
));
}
else {
$_advagg['rebuilt'][] = $bundle_md5;
}
return $good;
}