You are here

customerror.install in Customerror 6

Same filename and directory in other branches
  1. 5 customerror.install
  2. 7 customerror.install

Install and uninstall hooks.

File

customerror.install
View source
<?php

/**
 * @file
 * Install and uninstall hooks.
 */

/**
 * Implements hook_uninstall().
 */
function customerror_uninstall() {
  db_query("DELETE FROM {variable} WHERE name LIKE 'customerror_%'");
  foreach (_customerror_enum_errors() as $code => $desc) {
    if (variable_get('site_' . $code, '') == 'customerror/' . $code) {
      variable_del('site_' . $code, '');
    }
  }
}

Functions

Namesort descending Description
customerror_uninstall Implements hook_uninstall().