function path2ban_page_build in path2ban 7.2
Implements hook_page_build().
In this module's current implementation too many Drupal libraries are needed for a lower order hook to be used.
File
- ./
path2ban.module, line 41
Code
function path2ban_page_build(&$page) {
if (!variable_get('path2ban_use_hooks', 0)) {
return;
}
Path2ban::destinationCheck();
// No redirect needed, as it should just proceed to the 404 page.
}