function restrict_by_ip_boot in Restrict Login or Role Access by IP Address 8.4
Same name and namespace in other branches
- 6.3 restrict_by_ip.module \restrict_by_ip_boot()
- 7.3 restrict_by_ip.module \restrict_by_ip_boot()
Implements hook_boot().
@TODO
File
- ./
restrict_by_ip.module, line 40 - Restrict logins or roles to whitelisted IP addresses.
Code
function restrict_by_ip_boot() {
global $user;
// Call the function early in boot process to check/strip roles
restrict_by_ip_role_check($user);
}