? .buildpath ? .project ? .settings ? sites/all/modules/hnf ? sites/default/files ? sites/default/settings.php Index: includes/menu.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/menu.inc,v retrieving revision 1.330 diff -u -p -r1.330 menu.inc --- includes/menu.inc 20 Jul 2009 01:28:16 -0000 1.330 +++ includes/menu.inc 28 Jul 2009 11:17:22 -0000 @@ -406,6 +406,11 @@ function menu_execute_active_handler($pa return MENU_ACCESS_DENIED; } } + $current_path = isset($path) ? $_GET['q'] : NULL; + $page_not_found = module_invoke_all('page_not_found', $current_path); + if (isset($page_not_found) && is_array($page_not_found) && isset($page_not_found['status_code'])) { + return $page_not_found['status_code']; + } return MENU_NOT_FOUND; } @@ -1269,7 +1274,7 @@ function theme_menu_tree($tree) { * The menu item's LI element is given one of the following classes: * - expanded: The menu item is showing its submenu. * - collapsed: The menu item has a submenu which is not shown. - * - leaf: The menu item has no submenu. + * - leaf: The menu item has no submenu. * * @ingroup themeable *