function restrict_ip_preprocess_html in Restrict IP 7
Same name and namespace in other branches
- 8.2 restrict_ip.module \restrict_ip_preprocess_html()
- 8 restrict_ip.module \restrict_ip_preprocess_html()
- 7.2 restrict_ip.module \restrict_ip_preprocess_html()
- 3.x restrict_ip.module \restrict_ip_preprocess_html()
Override of template_preprocess_html()
This function unsets $page_top and $page_bottom so that they are not passed to html.tpl.php, preventing these regions from being rendered
File
- ./
restrict_ip.module, line 299
Code
function restrict_ip_preprocess_html(&$items) {
if (restrict_ip_value()) {
if (isset($items['page']['page_top'])) {
unset($items['page']['page_top']);
}
if (isset($items['page']['page_top'])) {
unset($items['page']['page_bottom']);
}
}
}