You are here

function panopoly_search_form_alter in Panopoly Search 7

Implementation of hook_form_alter()

File

./panopoly_search.module, line 15

Code

function panopoly_search_form_alter(&$form, &$form_state, $form_id) {
  if ($form_id == 'search_form' || $form_id == 'search_block_form' || $form_id == 'search_theme_form') {
    $form['#submit'][] = 'panopoly_search_all_form_submit';
    if (!empty($form['basic']['keys'])) {
      $form['basic']['keys']['#size'] = '';
    }
  }
}