drupal_not_found

5 common.inc drupal_not_found()
6 common.inc drupal_not_found()
7 common.inc drupal_not_found()
8 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

16 calls to drupal_not_found()

File

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

Code

function drupal_not_found() {
  drupal_deliver_page(MENU_NOT_FOUND);
}

Comments

tip

Use drupal_access_denied() to display error 403.

Use exit() if you're seeing two error pages.

Probably best to use

Probably best to use drupal_exit()

Login or register to post comments