You are here

function google_appliance_block_form in Google Search Appliance 7

Form builder outputs the search form for the search block

See also

google_appliance_block_form_submit()

google_appliance-block-form.tpl.php

1 string reference to 'google_appliance_block_form'
google_appliance_block_view in ./google_appliance.module
Implements hook_block_view().

File

./google_appliance.module, line 245
Google Appliance module enables searching via a dedicated Google Search Appliance hardware device. See README.txt and the help page at admin/help/google_appliance.

Code

function google_appliance_block_form($form, &$form_state) {
  $form['search_keys'] = array(
    '#type' => 'textfield',
    '#title' => t('Enter the terms you wish to search for.'),
    '#title_display' => 'invisible',
    '#size' => 15,
    '#default_value' => '',
  );
  $form['actions'] = array(
    '#type' => 'actions',
    'submit' => array(
      '#type' => 'submit',
      '#value' => t('Search'),
    ),
  );
  return $form;
}