You are here

function drupal_not_found in Drupal 7

Same name and namespace in other branches
  1. 4 includes/common.inc \drupal_not_found()
  2. 5 includes/common.inc \drupal_not_found()
  3. 6 includes/common.inc \drupal_not_found()

Delivers a "page not found" error to the browser.

Page callback functions wanting to report a "page not found" message should return MENU_NOT_FOUND instead of calling drupal_not_found(). However, functions that are invoked in contexts where that return value might not bubble up to menu_execute_active_handler() should call drupal_not_found().

Related topics

10 calls to drupal_not_found()
book_export in modules/book/book.pages.inc
Menu callback; Generates representations of a book page and its children.
book_export_html in modules/book/book.pages.inc
Generates HTML for export when invoked by book_export().
contact_site_form in modules/contact/contact.pages.inc
Form constructor for the site-wide contact form.
file_download in includes/file.inc
Menu handler for private file transfers.
file_transfer in includes/file.inc
Transfers a file to the client using HTTP.

... See full list

File

includes/common.inc, line 737
Common functions that many Drupal modules will need to reference.

Code

function drupal_not_found() {
  drupal_deliver_page(MENU_NOT_FOUND);
}