function ds_search_form_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_search_form_alter()
Implements hook_form_FORM_ID_alter().
File
- modules/
ds_search/ ds_search.module, line 639 - Display Suite search.
Code
function ds_search_form_search_form_alter(&$form, $form_state) {
if (variable_get('ds_search_type', 'node') == 'node' && isset($form['module']) && $form['module']['#value'] == 'ds_search') {
if (variable_get('ds_search_node_form_alter', FALSE)) {
$form['module']['#value'] = 'node';
node_form_search_form_alter($form, $form_state);
}
}
}