function apachesolr_multisitesearch_enabled_facets_form_submit in Apache Solr Multisite Search 6
Same name and namespace in other branches
- 6.2 apachesolr_multisitesearch.admin.inc \apachesolr_multisitesearch_enabled_facets_form_submit()
This is the submit handler for the active facets form.
The form values for each module are array filtereed to remove non-enabled items and stored in the variable table with the name 'apachesolr_enabled_facets'.
See also
apachesolr_multisitesearch_enabled_facets_form()
File
- ./
apachesolr_multisitesearch.admin.inc, line 101 - Provides a multi-site search admin pages and functionality
Code
function apachesolr_multisitesearch_enabled_facets_form_submit($form, &$form_state) {
$enabled = array();
foreach ($form_state['values']['apachesolr_multisitesearch_enabled_facets'] as $module => $facets) {
$enabled[$module] = array_filter($facets);
}
variable_set('apachesolr_multisitesearch_enabled_facets', $enabled);
drupal_set_message($form_state['values']['submit_message'], 'warning');
}