summaryrefslogtreecommitdiff
path: root/modules/search
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-06-30 19:46:58 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-06-30 19:46:58 +0000
commit9e6ef53c2c3f15ad580ebfe71b53899eb4683c11 (patch)
tree99f55c2dbe3537f9be7c8750424371f688e2f7b8 /modules/search
parent0995d62be320ced7c533d805fe887d78741bfbb8 (diff)
downloadbrdo-9e6ef53c2c3f15ad580ebfe71b53899eb4683c11.tar.gz
brdo-9e6ef53c2c3f15ad580ebfe71b53899eb4683c11.tar.bz2
#154064 by pwolanin: get hook_help() up to speed to menu changes, allowing router path based lookups, and also full path argument lookup with a passed argument array
Diffstat (limited to 'modules/search')
-rw-r--r--modules/search/search.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/search/search.module b/modules/search/search.module
index 1ac901a75..1ae52e456 100644
--- a/modules/search/search.module
+++ b/modules/search/search.module
@@ -93,8 +93,8 @@ define('PREG_CLASS_CJK', '\x{3041}-\x{30ff}\x{31f0}-\x{31ff}\x{3400}-\x{4db5}'.
/**
* Implementation of hook_help().
*/
-function search_help($section) {
- switch ($section) {
+function search_help($path, $arg) {
+ switch ($path) {
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>';