function maintenance_exempt_get_ips in Maintenance Exempt 7
Same name and namespace in other branches
- 8 maintenance_exempt.module \maintenance_exempt_get_ips()
Helper function to extract an array of IPs from the settings form.
2 calls to maintenance_exempt_get_ips()
- maintenance_exempt_by_cidr_notation in ./
maintenance_exempt.module - Helper function to go through array looking in an attempt to match netmask.
- maintenance_exempt_ip_match in ./
maintenance_exempt.module - Check whether an IP address should be exempt from maintenance mode.
File
- ./
maintenance_exempt.module, line 142 - Allow exemption of maintenance mode based on either certain set IP addresses or matching a set query string value.
Code
function maintenance_exempt_get_ips() {
$allowed_ips = variable_get('maintenance_exempt_ips');
return array_map('trim', explode("\n", $allowed_ips));
}