You are here

function restrict_by_ip_user_role_delete in Restrict Login or Role Access by IP Address 7.3

Same name and namespace in other branches
  1. 8.4 restrict_by_ip.module \restrict_by_ip_user_role_delete()

Delete role IP restirctions when a role is deleted. Implements hook_user_role_delete().

File

./restrict_by_ip.module, line 392
Allows the admin to select which ip addresses role or a user can login from for this site Some of the code below is taken from the cck_ipaddress_module

Code

function restrict_by_ip_user_role_delete($role) {
  variable_del('restrict_by_ip_role_' . _restrict_by_ip_hash_role_name($role->name));
}