search_help
- Versions
- 4.6
search_help($section = 'admin/help#search')- 4.7 – 5
search_help($section)- 6 – 7
search_help($path, $arg)
Implementation of hook_help().
Code
modules/search.module, line 47
<?php
function search_help($section = 'admin/help#search') {
switch ($section) {
case 'admin/modules#description':
return t('Enables site-wide keyword searching.');
case 'admin/settings/search':
return t('
<p>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('<p><ul>
<li>Check if your spelling is correct.</li>
<li>Try using wildcards: <em>walk*</em> matches <em>walker</em>, <em>walking</em>, ...</li>
<li>Use longer words (words shorter than %number letters are ignored).</li>
</ul></p>', array('%number' => variable_get('minimum_word_size', 3)));
}
}
?>Login or register to post comments 