'#description'=>t("Select the source for the Secondary links. An advanced option allows you to use the same source for both Main links (currently %main) and Secondary links: if your source menu has two levels of hierarchy, the top level menu links will appear in the Main links, and the children of the active link will appear in the Secondary links.",array('%main'=>$main_options[$main])),
'#description'=>t('The maximum number of items indexed in each pass of a <a href="@cron">cron maintenance task</a>. If necessary, reduce the number of items to prevent timeouts and memory errors while indexing.',array('@cron'=>url('admin/reports/status')))
);
...
...
@@ -98,7 +98,7 @@ function search_admin_settings($form) {
'#description'=>t('The number of characters a word has to be to be indexed. A lower setting means better search result ranking, but also a larger database. Each search query must contain at least one keyword that is this size (or longer).')
...
...
@@ -106,7 +106,7 @@ function search_admin_settings($form) {
'#description'=>t('Whether to apply a simple Chinese/Japanese/Korean tokenizer based on overlapping sequences. Turn this off if you want to use an external preprocessor for this instead. Does not affect other languages.')
);
...
...
@@ -116,7 +116,7 @@ function search_admin_settings($form) {
'#description'=>t('A local file system path where public files will be stored. This directory must exist and be writable by Drupal. This directory must be relative to the Drupal installation directory and be accessible over the web.'),
'#after_build'=>array('system_check_directory'),
...
...
@@ -1728,7 +1727,7 @@ function system_file_system_settings() {
'#description'=>t('A local file system path where private files will be stored. This directory must exist and be writable by Drupal. This directory should not be accessible over the web.'),
'#after_build'=>array('system_check_directory'),
...
...
@@ -1737,7 +1736,7 @@ function system_file_system_settings() {
'#description'=>t('This setting is used as the preferred download method. The use of public files is more efficient, but does not provide any access control.'),
);
}
returnsystem_settings_form($form,TRUE);
returnsystem_settings_form($form);
}
/**
...
...
@@ -1783,7 +1782,7 @@ function system_image_toolkit_settings() {
$form['image_toolkit']=array(
'#type'=>'radios',
'#title'=>t('Select an image processing toolkit'),
'#options'=>array('title'=>t('Titles only'),'teaser'=>t('Titles plus teaser'),'fulltext'=>t('Full text')),
'#description'=>t('Global setting for the default display of content items in each feed.')
);
returnsystem_settings_form($form,TRUE);
returnsystem_settings_form($form);
}
/**
...
...
@@ -1916,7 +1914,7 @@ function system_regional_settings() {
'#description'=>t('Only applied if users may set their own time zone.')
);
returnsystem_settings_form($form,FALSE);
returnsystem_settings_form($form);
}
/**
...
...
@@ -1991,7 +1989,7 @@ function system_date_time_settings() {
// Display a message if no date types configured.
$form['#empty_text']=t('No date types available. <a href="@link">Add date type</a>.',array('@link'=>url('admin/config/regional/date-time/types/add')));
returnsystem_settings_form($form,FALSE);
returnsystem_settings_form($form);
}
/**
...
...
@@ -2152,17 +2150,17 @@ function system_site_maintenance_mode() {
'#description'=>t('When enabled, only users with the "Access site in maintenance mode" <a href="@permissions-url">permission</a> are able to access your site to perform maintenance; all other visitors see the maintenance mode message configured below. Authorized users can log in directly via the <a href="@user-login">user login</a> page.',array('@permissions-url'=>url('admin/people/permissions'),'@user-login'=>url('user'))),
);
$form['maintenance_mode_message']=array(
'#type'=>'textarea',
'#title'=>t('Maintenance mode message'),
'#default_value'=>t('@site is currently under maintenance. We should be back shortly. Thank you for your patience.',array('@site'=>variable_get('site_name','Drupal'))),
'#default_value'=>variable_get('maintenance_mode_message',t('@site is currently under maintenance. We should be back shortly. Thank you for your patience.',array('@site'=>variable_get('site_name','Drupal')))),
'#description'=>t('Message to show visitors when the site is in maintenance mode.')
);
returnsystem_settings_form($form,TRUE);
returnsystem_settings_form($form);
}
/**
...
...
@@ -2193,7 +2191,7 @@ function system_clean_url_settings($form, &$form_state) {
$form['clean_url']=array(
'#type'=>'checkbox',
'#title'=>t('Enable clean URLs'),
'#default_value'=>0,
'#default_value'=>variable_get('clean_url',0),
'#description'=>t('Use URLs like <code>example.com/user</code> instead of <code>example.com/?q=user</code>.'),
@@ -47,7 +47,7 @@ function update_settings($form) {
'#description'=>t('You can choose to send e-mail only if a security update is available, or to be notified about all newer versions. If there are updates available of Drupal core or any of your installed modules and themes, your site will always print a message on the <a href="@status_report">status report</a> page, and will also display an error message on administration pages if there is a security update.',array('@status_report'=>url('admin/reports/status')))
);
$form=system_settings_form($form,FALSE);
$form=system_settings_form($form);
// Custom validation callback for the email notification setting.
$form['#validate'][]='update_settings_validate';
// We need to call our own submit callback first, not the one from