You are here

function redirect_is_current_page_404 in Redirect 8

Same name and namespace in other branches
  1. 7.2 redirect.module \redirect_is_current_page_404()
  2. 7 redirect.module \redirect_is_current_page_404()

Returns if the current page request is a page not found (404 status error).

Why the fuck do we have to do this? Why is there not an easier way???

Return value

TRUE if the current page is a 404, or FALSE otherwise.

1 call to redirect_is_current_page_404()
redirect_page_build in ./redirect.module
Implements hook_page_build().

File

./redirect.module, line 248
The redirect module.

Code

function redirect_is_current_page_404() {
  return drupal_get_http_header('Status') == '404 Not Found';
}