You are here

function restrict_ip_update_7201 in Restrict IP 7.2

Implements hook_update_N().

Update restrict_ip_login_link_denied_page variable to restrict_ip_bypass_action option variable.

File

./restrict_ip.install, line 29
Install file for Restrict IP Module. Contains install/uninstall hooks.

Code

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');
}