Index: js_theming.search.js =================================================================== RCS file: js_theming.search.js diff -N js_theming.search.js --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ js_theming.search.js 15 Oct 2009 16:46:03 -0000 @@ -0,0 +1,25 @@ +// $Id$ +Drupal.searchHelp = function (path, arg) { + switch (path) { + case 'admin/help#search': + var output = '

' + Drupal.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, and is useful for finding both users and posts.') + '

'; + output += '

' + Drupal.t('To provide keyword searching, 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 search settings page; for example, the Number of items to index per cron run sets the maximum number of items indexed in each pass of a cron maintenance task. If necessary, reduce this number to prevent timeouts and memory errors when indexing.', { '@cron': Drupal.url('admin/reports/status'), '@searchsettings': Drupal.url('admin/settings/search') }) + '

'; + output += '

' + Drupal.t('For more information, see the online handbook entry for Search module.', { '@search': 'http://drupal.org/handbook/modules/search/' }) + '

'; + return output; + case 'admin/settings/search': + return '

' + Drupal.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.', { '@cron': Drupal.url('admin/reports/status') }) + '

'; + case 'search#noresults': + return Drupal.t(''); + } +} + +Drupal.drupalHelpArg = function (arg) { + if (arg == undefined) { + arg = []; + } + return arg.concat([ '', '', '', '', '', '', '', '', '', '', '', '' ]); +}