function restrict_ip_permission in Restrict IP 7.2
Same name and namespace in other branches
- 7 restrict_ip.module \restrict_ip_permission()
Implements hook_permission().
File
- ./
restrict_ip.module, line 35 - Holds hooks for the restrict_ip module.
Code
function restrict_ip_permission() {
$permissions = array(
'Administer Restricted IP addresses' => array(
'title' => 'Administer Restricted IP addresses',
'description' => 'Allows the user to set admitted IP addresses',
),
);
if (variable_get('restrict_ip_allow_role_bypass')) {
$permissions['Bypass IP Restriction'] = array(
'title' => 'Bypass IP Restriction',
'description' => 'Allows the user to access the site even if not in the IP whitelist',
);
}
return $permissions;
}