You are here

function glossary_search_form in Glossary 7

Same name and namespace in other branches
  1. 5.2 glossary.module \glossary_search_form()
  2. 5 glossary.module \glossary_search_form()
  3. 6 glossary.module \glossary_search_form()

@todo Please document this function.

See also

http://drupal.org/node/1354

2 string references to 'glossary_search_form'
glossary_block_view in ./glossary.module
Implements hook_block_view().
glossary_search_results in ./glossary.module
Present the search results.

File

./glossary.module, line 177
Glossary terms will be automatically marked with links to their descriptions.

Code

function glossary_search_form($form, $form_state, $keys = NULL) {

  //  $form['#action'] = url('glossary/search');
  //  $form['#attributes'] = array('class' => 'glossary search-form');
  $form['keys'] = array(
    '#type' => 'textfield',
    '#title' => '',
    '#default_value' => $keys,
    '#size' => 15,
  );
  $form['search'] = array(
    '#type' => 'submit',
    '#value' => t('Search'),
  );
  return $form;
}