function restrict_by_ip_admin_role_submit in Restrict Login or Role Access by IP Address 6.3
Custom submit function for user_admin_role form.
1 string reference to 'restrict_by_ip_admin_role_submit'
- restrict_by_ip_form_alter in ./
restrict_by_ip.module - Implmentation of hook_form_alter().
File
- ./
restrict_by_ip.module, line 404 - 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_admin_role_submit($form, &$form_state) {
if ($form_state['values']['op'] == t('Delete role')) {
// Remove any IP restrictions from roles upon deletion of role.
variable_del('restrict_by_ip_role' . $form_state['values']['rid']);
}
}