This repository has been archived on 2025-06-21. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
suitedesk/sites/all/modules/advagg/advagg_bundler/advagg_bundler.install

52 lines
1.1 KiB
Text

<?php
/**
* @file
* Handles AdvAgg Bundler installation and upgrade tasks.
*/
/**
* Implementation of hook_enable().
*/
function advagg_bundler_enable() {
// Flush advagg caches.
$cache_tables = advagg_flush_caches();
foreach ($cache_tables as $table) {
cache_clear_all('*', $table, TRUE);
}
}
/**
* Implementation of hook_disable().
*/
function advagg_bundler_disable() {
// Flush advagg caches.
$cache_tables = advagg_flush_caches();
foreach ($cache_tables as $table) {
cache_clear_all('*', $table, TRUE);
}
}
/**
* Implementation of hook_uninstall().
*/
function advagg_bundler_uninstall() {
// Remove variables.
variable_del('advagg_bundler_outdated');
variable_del('advagg_bundler_max_css');
variable_del('advagg_bundler_max_js');
variable_del('advagg_bundler_active');
}
/**
* Implementation of hook_requirements().
*/
function advagg_bundler_requirements($phase) {
$requirements = array();
// Ensure translations don't break at install time
$t = get_t();
if ($phase == 'runtime') {
}
return $requirements;
}