function drupal_not_found
7.x common.inc | drupal_not_found() |
6.x 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 drupal-7.x/
modules/ book/ book.pages.inc - Menu callback; Generates representations of a book page and its children.
- book_export_html in drupal-7.x/
modules/ book/ book.pages.inc - Generates HTML for export when invoked by book_export().
- contact_site_form in drupal-7.x/
modules/ contact/ contact.pages.inc - Form constructor for the site-wide contact form.
- file_download in drupal-7.x/
includes/ file.inc - Menu handler for private file transfers.
- file_transfer in drupal-7.x/
includes/ file.inc - Transfers a file to the client using HTTP.
File
- drupal-7.x/
includes/ common.inc, line 731 - Common functions that many Drupal modules will need to reference.
Code
function drupal_not_found() {
drupal_deliver_page(MENU_NOT_FOUND);
}