Rebuild a bundle.
Paramètres
$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 dans includes/
admin.inc - Rebuild bundles.
- advagg_missing_regenerate dans includes/
missing.inc - regenerates a missing css file.
1 string reference to 'advagg_rebuild_bundle'
- advagg_flush_caches dans ./
advagg.module - Implements hook_flush_caches().
Fichier
-
./
advagg.module, line 1639
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;
}