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

... See full list

File

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

Code

function drupal_not_found() {
  drupal_deliver_page(MENU_NOT_FOUND);
}