function apachesolr_multisitesearch_form_apachesolr_settings_alter in Apache Solr Multisite Search 7
Implements hook_form_alter().
See also
File
- ./
apachesolr_multisitesearch.module, line 341 - Provides a multi-site search implementation for use with the Apache Solr module
Code
function apachesolr_multisitesearch_form_apachesolr_settings_alter(&$form, &$form_state) {
$form['multisite'] = array(
'#type' => 'fieldset',
'#title' => t('Multisite'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['multisite']['apachesolr_multisitesearch_metadata_update_interval'] = array(
'#type' => 'select',
'#title' => t('How often to push metadata updates from this site and commit them to Solr'),
'#options' => drupal_map_assoc(array(
300,
900,
1800,
3600,
10800,
21600,
43200,
86400,
604800,
1209600,
2592000,
), 'format_interval'),
'#default_value' => variable_get('apachesolr_multisitesearch_metadata_update_interval', 3600),
);
$form['multisite']['apachesolr_multisitesearch_metadata_fetch_interval'] = array(
'#type' => 'select',
'#title' => t('How often to fetch metadata data from the index'),
'#options' => drupal_map_assoc(array(
300,
900,
1800,
3600,
10800,
21600,
43200,
86400,
604800,
), 'format_interval'),
'#default_value' => variable_get('apachesolr_multisitesearch_metadata_fetch_interval', 300),
);
}