You are here

function panopoly_search_form_alter in Panopoly 7

Implementation of hook_form_alter()

File

modules/panopoly/panopoly_search/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'] = '';
    }
  }
}