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

11 calls to drupal_not_found()
announce_feed_test_set_feed_config in modules/announcements_feed/tests/announce_feed_test.module
Helper function to set announcements feed URL.
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.

... See full list

File

includes/common.inc, line 737

Code

function drupal_not_found() {
    drupal_deliver_page(MENU_NOT_FOUND);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.