### Eclipse Workspace Patch 1.0
#P drupal
Index: modules/search/search.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/search/search.module,v
retrieving revision 1.204
diff -u -r1.204 search.module
--- modules/search/search.module	1 Dec 2006 22:47:53 -0000	1.204
+++ modules/search/search.module	8 Dec 2006 12:01:26 -0000
@@ -144,8 +144,8 @@
   if ($may_cache) {
     $items[] = array('path' => 'search',
       'title' => t('Search'),
-      'callback' => 'drupal_get_form',
-      'callback arguments' => array('search_view'),
+      'callback' => 'search_view',
+      'callback arguments' => array('node'),
       'access' => user_access('search content'),
       'type' => MENU_SUGGESTED_ITEM);
     $items[] = array('path' => 'admin/settings/search',
@@ -175,6 +175,7 @@
       if (module_hook($name, 'search') && $title = module_invoke($name, 'search', 'name')) {
         $items[] = array('path' => 'search/'. $name . $keys, 'title' => $title,
           'callback' => 'search_view',
+          'callback arguments' => array($name),
           'access' => user_access('search content'),
           'type' => MENU_LOCAL_TASK);
       }
@@ -892,8 +893,7 @@
 /**
  * Menu callback; presents the search form and/or search results.
  */
-function search_view() {
-  $type = arg(1);
+function search_view($type = '') {
 
   // Search form submits with POST but redirects to GET. This way we can keep
   // the search query URL clean as a whistle:
