Index: modules/node/node.module =================================================================== RCS file: /cvs/drupal/drupal/modules/node/node.module,v retrieving revision 1.961 diff -u -u -p -r1.961 node.module --- modules/node/node.module 6 May 2008 12:18:48 -0000 1.961 +++ modules/node/node.module 9 May 2008 16:41:42 -0000 @@ -53,6 +53,13 @@ function node_help($path, $arg) { $node = node_load($arg[1]); $type = node_get_types('type', $node->type); return (!empty($type->help) ? '

' . filter_xss_admin($type->help) . '

' : ''); + case 'search#noresults': + $noresults = array( + t('Check if your spelling is correct.'), + t('Remove quotes around phrases to match each word individually: "blue smurf" will match less than blue smurf.'), + t('Consider loosening your query with OR: blue smurf will match less than blue OR smurf.'), + ); + return theme('item_list', $noresults); } if ($arg[0] == 'node' && $arg[1] == 'add' && $arg[2]) { Index: modules/search/search.module =================================================================== RCS file: /cvs/drupal/drupal/modules/search/search.module,v retrieving revision 1.256 diff -u -u -p -r1.256 search.module --- modules/search/search.module 6 May 2008 12:18:50 -0000 1.256 +++ modules/search/search.module 9 May 2008 16:41:42 -0000 @@ -102,12 +102,6 @@ function search_help($path, $arg) { return $output; case 'admin/settings/search': return '

' . t('The search engine maintains an index of words found in your site\'s content. To build and maintain this index, a correctly configured cron maintenance task is required. Indexing behavior can be adjusted using the settings below.', array('@cron' => url('admin/reports/status'))) . '

'; - case 'search#noresults': - return t(''); } } Index: modules/search/search.pages.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/search/search.pages.inc,v retrieving revision 1.5 diff -u -u -p -r1.5 search.pages.inc --- modules/search/search.pages.inc 14 Apr 2008 17:48:41 -0000 1.5 +++ modules/search/search.pages.inc 9 May 2008 16:41:42 -0000 @@ -35,7 +35,8 @@ function search_view($type = 'node') { $results = theme('box', t('Search results'), $results); } else { - $results = theme('box', t('Your search yielded no results'), search_help('search#noresults', drupal_help_arg())); + $help = module_invoke($type, 'help', 'search#noresults', drupal_help_arg()); + $results = theme('box', t('Your search yielded no results'), $help); } } Index: modules/user/user.module =================================================================== RCS file: /cvs/drupal/drupal/modules/user/user.module,v retrieving revision 1.907 diff -u -u -p -r1.907 user.module --- modules/user/user.module 7 May 2008 19:34:24 -0000 1.907 +++ modules/user/user.module 9 May 2008 16:41:45 -0000 @@ -1852,6 +1852,12 @@ function user_help($path, $arg) { ', array('@permissions' => url('admin/user/permissions'))); case 'admin/user/search': return '

' . t('Enter a simple pattern ("*" may be used as a wildcard match) to search for a username or e-mail address. For example, one may search for "br" and Drupal might return "brian", "brad", and "brenda@example.com".') . '

'; + case 'search#noresults': + $noresults = array( + t('Check if your spelling is correct.'), + t('Beware that search user only looks for the Drupal user name and not the user\'s full name'), + ); + return theme('item_list', $noresults); } }