function ds_search_form_apachesolr_search_custom_page_search_form_alter in Display Suite 7.2
Same name and namespace in other branches
- 7 modules/ds_search/ds_search.module \ds_search_form_apachesolr_search_custom_page_search_form_alter()
Implements hook_form_FORM_ID_alter().
File
- modules/
ds_search/ ds_search.module, line 651 - Display Suite search.
Code
function ds_search_form_apachesolr_search_custom_page_search_form_alter(&$form, $form_state) {
if (variable_get('ds_search_apachesolr_hide_current_filters', FALSE)) {
$form['basic']['retain-filters']['#type'] = 'value';
$form['basic']['retain-filters']['#value'] = variable_get('ds_search_apachesolr_current_filters_default', FALSE);
}
}