function restrict_by_ip_init 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_init()
- 7.3 restrict_by_ip.module \restrict_by_ip_init()
Implements hook_init().
@TODO
File
- ./
restrict_by_ip.module, line 29 - Restrict logins or roles to whitelisted IP addresses.
Code
function restrict_by_ip_init() {
global $user;
// Login restriction check moved here to prevent access from stale session data
_restrict_by_ip_login($user);
}