drupal_not_found

Versions
4.6 – 7
drupal_not_found()

Deliver 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().

▾ 15 functions call drupal_not_found()

book_export in modules/book/book.pages.inc
Menu callback; Generates various representation of a book page and its children.
comment_permalink in modules/comment/comment.module
Redirects comment links to the correct page depending on comment settings.
contact_site_form in modules/contact/contact.pages.inc
Form builder; the site-wide contact form.
file_download in includes/file.inc
Menu handler for private file transfers.
file_transfer in includes/file.inc
Transfer file using HTTP to client. Pipes a file through Drupal to the client.
locale_languages_delete_form in includes/locale.inc
User interface for the language deletion confirmation screen.
locale_languages_edit_form in includes/locale.inc
Editing screen for a particular language.
locale_translate_delete_page in includes/locale.inc
String deletion confirmation page.
profile_browse in modules/profile/profile.pages.inc
Menu callback; display a list of user information.
profile_field_delete in modules/profile/profile.admin.inc
Menu callback; deletes a field from all user profiles.
profile_field_form in modules/profile/profile.admin.inc
Menu callback: Generate a form to add/edit a user profile field.
statistics_access_log in modules/statistics/statistics.admin.inc
Menu callback; Displays recent page accesses.
statistics_node_tracker in modules/statistics/statistics.pages.inc
statistics_user_tracker in modules/statistics/statistics.pages.inc
system_main_admin_page in modules/system/system.admin.inc
Menu callback; Provide the administration overview page.

Code

includes/common.inc, line 743

<?php
function drupal_not_found() {
  drupal_deliver_page(MENU_NOT_FOUND);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.