function advagg_js_compress_enable in Advanced CSS/JS Aggregation 6
Same name and namespace in other branches
- 7 advagg_js_compress/advagg_js_compress.install \advagg_js_compress_enable()
Implementation of hook_enable().
File
- advagg_js_compress/
advagg_js_compress.install, line 11 - Handles AdvAgg JS compress installation and upgrade tasks.
Code
function advagg_js_compress_enable() {
// Flush advagg caches.
$cache_tables = advagg_flush_caches();
foreach ($cache_tables as $table) {
cache_clear_all('*', $table, TRUE);
}
// Check runtime requirements
register_shutdown_function('advagg_js_compress_requirements', 'runtime');
}