You are here

slick_devel.install in Slick extras 7.2

Same filename and directory in other branches
  1. 7.3 slick_devel/slick_devel.install

Install, update and uninstall functions for the Slick Development module.

File

slick_devel/slick_devel.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the Slick Development module.
 */

/**
 * Implements hook_uninstall().
 */
function slick_devel_uninstall() {
  variable_del('slick_devel');
  variable_del('slick_devel_debug');
  variable_del('slick_devel_disable');
  variable_del('slick_devel_replace');
  if (variable_get('slick_devel_load', FALSE)) {
    variable_del('slick_devel_load', TRUE);
  }
}

/**
 * Replace ambigous variable "slick_devel_load" with "slick_devel_replace".
 */
function slick_devel_update_7001() {
  if (variable_get('slick_devel_load', FALSE)) {
    variable_del('slick_devel_load', TRUE);
    variable_set('slick_devel_replace', TRUE);
  }
}

/**
 * Replace variable "slick_debug" with "slick_devel_debug".
 */
function slick_devel_update_7002() {
  if (variable_get('slick_debug', FALSE)) {
    variable_del('slick_debug');
    variable_set('slick_devel_debug', TRUE);
  }
}

Functions

Namesort descending Description
slick_devel_uninstall Implements hook_uninstall().
slick_devel_update_7001 Replace ambigous variable "slick_devel_load" with "slick_devel_replace".
slick_devel_update_7002 Replace variable "slick_debug" with "slick_devel_debug".