? .DS_Store
? i.php
? includes/.new.b9lerQ
? sites/.DS_Store
? sites/all/modules/dfs
? sites/all/modules/nfs
? sites/default/files
? sites/default/settings.php
Index: includes/menu.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/menu.inc,v
retrieving revision 1.321
diff -u -p -r1.321 menu.inc
--- includes/menu.inc	19 Apr 2009 19:10:07 -0000	1.321
+++ includes/menu.inc	25 Apr 2009 13:56:38 -0000
@@ -405,9 +405,35 @@ function menu_execute_active_handler($pa
       return MENU_ACCESS_DENIED;
     }
   }
+  // Hook 404.
+  if (!isset($path)) {
+    hook_404($_GET['q']);
+  }
+  else {
+    hook_404($path);
+  }
+  
+  // End Hook 404
   return MENU_NOT_FOUND;
 }
 
+
+/**
+ * Invoke a hook_404() operation in all modules.
+ *
+ * @param $path
+ *   The Drupal path requested.
+ * @return
+ *   The returned value of the invoked hooks.  NOT DONE YET.
+ */
+function hook_404($path = NULL) {
+  foreach (module_implements('404') as $module) {
+    $function = $module . '_404';
+    $result = $function($path);
+  }
+}
+
+
 /**
  * Loads objects into the map as defined in the $item['load_functions'].
  *