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

Handles Advanced Aggregation installation and upgrade tasks.

File

advagg_bundler/advagg_bundler.install

View source
<?php


/**
 * @file
 * Handles Advanced Aggregation installation and upgrade tasks.
 */

/**
 * @addtogroup hooks
 * @{
 */

/**
 * Implements hook_install().
 */
function advagg_bundler_install() {
    // New install gets a locked admin section.
    variable_set('advagg_bundler_admin_mode', 0);
}

/**
 * Remove the advagg_bundler_info variable if set.
 */
function advagg_bundler_update_7201() {
    $advagg_bundler_info = variable_get('advagg_bundler_info');
    if (!empty($advagg_bundler_info)) {
        variable_del('advagg_bundler_info');
        return t('Removed the advagg_bundler_info variable.');
    }
    else {
        return t('Nothing needed to happen.');
    }
}

/**
 * @} End of "addtogroup hooks".
 */

Functions

Title Deprecated Summary
advagg_bundler_install Implements hook_install().
advagg_bundler_update_7201 Remove the advagg_bundler_info variable if set.