function _restrict_by_ip_delete in Restrict Login or Role Access by IP Address 6.2
User deleted function Remove the restrict by ip data from the database table
1 call to _restrict_by_ip_delete()
- restrict_by_ip_user in ./
restrict_by_ip.module - Implementation of hook_user()
File
- ./
restrict_by_ip.module, line 357 - 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_delete($uid) {
if ($uid > 1) {
return db_query("DELETE FROM {restrict_by_ip} WHERE uid=%d", $uid);
}
else {
return FALSE;
}
}