function search_help in Drupal 5
Same name and namespace in other branches
- 8 core/modules/search/search.module \search_help()
- 4 modules/search.module \search_help()
- 6 modules/search/search.module \search_help()
- 7 modules/search/search.module \search_help()
- 9 core/modules/search/search.module \search_help()
Implementation of hook_help().
1 call to search_help()
- search_view in modules/
search/ search.module - Menu callback; presents the search form and/or search results.
File
- modules/
search/ search.module, line 95 - Enables site-wide keyword searching.
Code
function search_help($section) {
switch ($section) {
case 'admin/help#search':
$output = '<p>' . t('The search module adds the ability to search for content by keywords. Search is often the only practical way to find content on a large site. Search is useful for finding users and posts by searching on keywords.') . '</p>';
$output .= '<p>' . t('The search engine works by maintaining an index of the words in your site\'s content. It indexes the posts and users. You can adjust the settings to tweak the indexing behaviour. Note that the search requires cron to be set up correctly. The index percentage sets the maximum amount of items that will be indexed in one cron run. Set this number lower if your cron is timing out or if PHP is running out of memory.') . '</p>';
$output .= '<p>' . t('For more information please read the configuration and customization handbook <a href="@search">Search page</a>.', array(
'@search' => 'http://drupal.org/handbook/modules/search/',
)) . '</p>';
return $output;
case 'admin/settings/search':
return '<p>' . t('The search engine works by maintaining an index of the words in your site\'s content. You can adjust the settings below to tweak the indexing behaviour. Note that the search requires cron to be set up correctly.') . '</p>';
case 'search#noresults':
return t('<ul>
<li>Check if your spelling is correct.</li>
<li>Remove quotes around phrases to match each word individually: <em>"blue smurf"</em> will match less than <em>blue smurf</em>.</li>
<li>Consider loosening your query with <em>OR</em>: <em>blue smurf</em> will match less than <em>blue OR smurf</em>.</li>
</ul>');
}
}