1 search.module search_form_layout_block_configure_form_alter(&$form, &$form_state)

Implements hook_form_FORM_ID_alter().

Related topics

File

core/modules/search/search.module, line 1121
Enables site-wide keyword searching.

Code

function search_form_layout_block_configure_form_alter(&$form, &$form_state) {
  // Only alter the search block's configure form.
  if ($form_state['block']->module == 'search' && $form_state['block']->delta == 'form') {
    // Only hide the block title when the search block is first added.
    if ($form_state['block']->is_new == TRUE) {
      $form['title_display']['title_display']['#default_value'] = 'none';
    }
  }
}