function hook_restrict_ip_whitelisted_regions in Restrict IP 8
Same name and namespace in other branches
- 8.2 restrict_ip.api.php \hook_restrict_ip_whitelisted_regions()
- 7.2 restrict_ip.api.php \hook_restrict_ip_whitelisted_regions()
- 3.x restrict_ip.api.php \hook_restrict_ip_whitelisted_regions()
Add regions to be whitelisted even when the user has been denied access
Return value
An array of keys representing regions to be allowed even when the user is denied access by IP. These keys can be found by in the .info file for the theme, as region[KEY] = Region Name where KEY is the key to be returned in the return array of this function.
1 invocation of hook_restrict_ip_whitelisted_regions()
- restrict_ip_preprocess_page in ./
restrict_ip.module - Override of template_preprocess_page()
File
- ./
restrict_ip.api.php, line 18 - Hooks provided by the Restrict IP module.
Code
function hook_restrict_ip_whitelisted_regions() {
return [
'sidebar_first',
];
}