You are here

restrict_ip.install in Restrict IP 7.2

Same filename and directory in other branches
  1. 8.2 restrict_ip.install
  2. 8 restrict_ip.install
  3. 3.x restrict_ip.install

Install file for Restrict IP Module. Contains install/uninstall hooks.

File

restrict_ip.install
View source
<?php

/**
 * @file
 * Install file for Restrict IP Module. Contains install/uninstall hooks.
 */

/**
 * Implements hook_uninstall().
 */
function restrict_ip_uninstall() {
  variable_del('restrict_ip_enable');
  variable_del('restrict_ip_address_list');
  variable_del('restrict_ip_mail_address');
  variable_del('restrict_ip_watchdog');
  variable_del('restrict_ip_allow_role_bypass');
  variable_del('restrict_ip_bypass_action');
  variable_del('restrict_ip_white_black_list');
  variable_del('restrict_ip_page_whitelist');
  variable_del('restrict_ip_page_blacklist');
}

/**
 * Implements hook_update_N().
 *
 * Update restrict_ip_login_link_denied_page variable to
 * restrict_ip_bypass_action option variable.
 */
function restrict_ip_update_7201() {
  if (variable_get('restrict_ip_login_link_denied_page', FALSE)) {
    variable_set('restrict_ip_bypass_action', 'provide_link_login_page');
  }
  variable_del('restrict_ip_login_link_denied_page');
}

Functions