Same name and namespace in other branches
  1. 4.6.x includes/common.inc \drupal_not_found()
  2. 4.7.x includes/common.inc \drupal_not_found()
  3. 5.x includes/common.inc \drupal_not_found()
  4. 6.x 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

8 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.
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.
locale_languages_delete_form in modules/locale/locale.admin.inc
User interface for the language deletion confirmation screen.
locale_languages_edit_form in modules/locale/locale.admin.inc
Editing screen for a particular language.

... 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);
}