You are here

itoggle.install in iToggle 7.2

Same filename and directory in other branches
  1. 7 itoggle.install

iToggle installation hooks.

File

itoggle.install
View source
<?php

/**
 * @file
 * iToggle installation hooks.
 */

/**
 * Implements hook_uninstall().
 */
function itoggle_uninstall() {

  // Remove used variables.
  $result = db_query("SELECT name FROM {variable} WHERE name LIKE 'itoggle%'");
  foreach ($result as $row) {
    variable_del($row->name);
  }
}

/**
 * Delete unused library path variables.
 */
function itoggle_update_7000() {
  variable_del('itoggle_path');
  variable_del('itoggle_easing_path');
  return t('Deleted unused library path variables.');
}

/**
 * Reset easing options. Easing has been refactored and now depends on the
 * jQuery Easing module.
 */
function itoggle_update_7001(&$sandbox) {
  variable_del('itoggle_easing_use');
  variable_del('itoggle_easing_function');
  return t('Update successfull.');
}

Functions

Namesort descending Description
itoggle_uninstall Implements hook_uninstall().
itoggle_update_7000 Delete unused library path variables.
itoggle_update_7001 Reset easing options. Easing has been refactored and now depends on the jQuery Easing module.