Same filename and directory in other branches
  1. 5.0.x advagg_bundler/advagg_bundler.install 1 comment
  2. 6.0.x advagg_bundler/advagg_bundler.install 1 comment
  3. 7.x-2.x advagg_bundler/advagg_bundler.install 1 comment
  4. 8.x-2.x advagg_bundler/advagg_bundler.install 1 comment
  5. 8.x-3.x advagg_bundler/advagg_bundler.install 1 comment
  6. 8.x-4.x advagg_bundler/advagg_bundler.install 1 comment

Handles AdvAgg Bundler installation and upgrade tasks.

File

advagg_bundler/advagg_bundler.install

View source
<?php


/**
 * @file
 * Handles AdvAgg Bundler installation and upgrade tasks.
 */

/**
 * Implements hook_enable().
 */
function advagg_bundler_enable() {
    // Flush advagg caches.
    $cache_tables = advagg_flush_caches();
    foreach ($cache_tables as $table) {
        cache_clear_all('*', $table, TRUE);
    }
}

/**
 * Implements hook_disable().
 */
function advagg_bundler_disable() {
    // Flush advagg caches.
    $cache_tables = advagg_flush_caches();
    foreach ($cache_tables as $table) {
        cache_clear_all('*', $table, TRUE);
    }
}

/**
 * Implements 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');
}

/**
 * Implements 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;
}

Functions

Title Deprecated Summary
advagg_bundler_disable Implements hook_disable().
advagg_bundler_enable Implements hook_enable().
advagg_bundler_requirements Implements hook_requirements().
advagg_bundler_uninstall Implements hook_uninstall().