returnconfirm_form(array(),t('Are you sure you want to re-index the site?'),
'admin/settings/search',t(' The search index is not cleared but systematically updated to reflect the new settings. Searching will continue to work but new content won\'t be indexed until all existing content has been re-indexed. This action cannot be undone.'),t('Re-index site'),t('Cancel'));
'admin/config/search/settings',t(' The search index is not cleared but systematically updated to reflect the new settings. Searching will continue to work but new content won\'t be indexed until all existing content has been re-indexed. This action cannot be undone.'),t('Re-index site'),t('Cancel'));
}
/**
...
...
@@ -21,7 +21,7 @@ function search_reindex_confirm_submit(&$form, &$form_state) {
if($form['confirm']){
search_reindex();
drupal_set_message(t('The index will be rebuilt.'));
@@ -97,10 +97,10 @@ 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, and is useful for finding both users and posts.').'</p>';
$output.='<p>'.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 <a href="@cron">cron maintenance task</a> is required. Indexing behavior can be adjusted using the <a href="@searchsettings">search settings page</a>; for example, the <em>Number of items to index per cron run</em> sets the maximum number of items indexed in each pass of a <a href="@cron">cron maintenance task</a>. If necessary, reduce this number to prevent timeouts and memory errors when indexing.',array('@cron'=>url('admin/reports/status'),'@searchsettings'=>url('admin/settings/search'))).'</p>';
$output.='<p>'.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 <a href="@cron">cron maintenance task</a> is required. Indexing behavior can be adjusted using the <a href="@searchsettings">search settings page</a>; for example, the <em>Number of items to index per cron run</em> sets the maximum number of items indexed in each pass of a <a href="@cron">cron maintenance task</a>. If necessary, reduce this number to prevent timeouts and memory errors when indexing.',array('@cron'=>url('admin/reports/status'),'@searchsettings'=>url('admin/config/search/settings'))).'</p>';
$output.='<p>'.t('For more information, see the online handbook entry for <a href="@search">Search module</a>.',array('@search'=>'http://drupal.org/handbook/modules/search/')).'</p>';
return$output;
case'admin/settings/search':
case'admin/config/search/settings':
return'<p>'.t('The search engine maintains an index of words found in your site\'s content. To build and maintain this index, a correctly configured <a href="@cron">cron maintenance task</a> is required. Indexing behavior can be adjusted using the settings below.',array('@cron'=>url('admin/reports/status'))).'</p>';
case'search#noresults':
returnt('<ul>
...
...
@@ -192,7 +192,7 @@ function search_menu() {
'type'=>MENU_SUGGESTED_ITEM,
'file'=>'search.pages.inc',
);
$items['admin/settings/search']=array(
$items['admin/config/search/settings']=array(
'title'=>'Search settings',
'description'=>'Configure relevance settings for search and other indexing options',
'#markup'=>'<p>'.t('Use URLs like <code>example.com/user</code> instead of <code>example.com/?q=user</code>.').' '.t('If you are directed to a <em>Page not found (404)</em> error after testing for clean URLs, see the <a href="@handbook">online handbook</a>.',array('@handbook'=>'http://drupal.org/node/15365')).'</p>',
@@ -101,7 +101,7 @@ function system_help($path, $arg) {
$output.='<li>'.t('support for enabling and disabling <a href="@themes">themes</a>, which determine the design and presentation of your site. Drupal comes packaged with several core themes and additional contributed themes are available at the <a href="@drupal-themes">Drupal.org theme page</a>.',array('@themes'=>url('admin/appearance'),'@drupal-themes'=>'http://drupal.org/project/themes')).'</li>';
$output.='<li>'.t('a robust <a href="@cache-settings">caching system</a> that allows the efficient re-use of previously-constructed web pages and web page components. Drupal stores the pages requested by anonymous users in a compressed format; depending on your site configuration and the amount of your web traffic tied to anonymous visitors, Drupal\'s caching system may significantly increase the speed of your site.',array('@cache-settings'=>url('admin/config/development/performance'))).'</li>';
$output.='<li>'.t('a set of routine administrative operations that rely on a correctly-configured <a href="@cron">cron maintenance task</a> to run automatically. A number of other modules, including the feed aggregator, and search also rely on <a href="@cron">cron maintenance tasks</a>. For more information, see the online handbook entry for <a href="@handbook">configuring cron jobs</a>.',array('@cron'=>url('admin/reports/status'),'@handbook'=>'http://drupal.org/cron')).'</li>';
$output.='<li>'.t('basic configuration options for your site, including <a href="@regional-settings">date and time settings</a>, <a href="@file-system">file system settings</a>, <a href="@clean-url">clean URL support</a>, <a href="@site-info">site name and other information</a>, and a <a href="@maintenance-mode">maintenance mode</a> for taking your site temporarily offline.',array('@regional-settings'=>url('admin/config/regional/settings'),'@file-system'=>url('admin/config/media/file-system'),'@clean-url'=>url('admin/settings/clean-urls'),'@site-info'=>url('admin/settings/site-information'),'@maintenance-mode'=>url('admin/config/development/maintenance'))).'</li></ul>';
$output.='<li>'.t('basic configuration options for your site, including <a href="@regional-settings">date and time settings</a>, <a href="@file-system">file system settings</a>, <a href="@clean-url">clean URL support</a>, <a href="@site-info">site name and other information</a>, and a <a href="@maintenance-mode">maintenance mode</a> for taking your site temporarily offline.',array('@regional-settings'=>url('admin/config/regional/settings'),'@file-system'=>url('admin/config/media/file-system'),'@clean-url'=>url('admin/config/search/clean-urls'),'@site-info'=>url('admin/settings/site-information'),'@maintenance-mode'=>url('admin/config/development/maintenance'))).'</li></ul>';
$output.='<p>'.t('For more information, see the online handbook entry for <a href="@system">System module</a>.',array('@system'=>'http://drupal.org/handbook/modules/system/')).'</p>';
return$output;
case'admin/by-module':
...
...
@@ -841,6 +841,30 @@ function system_menu() {
'access arguments'=>array('administer site configuration'),
'file'=>'system.admin.inc',
);
$items['admin/config/search']=array(
'title'=>'Search and metadata',
'description'=>'Local site search, metadata and SEO.',