You are here

function glossary_search_form in Glossary 5.2

Same name and namespace in other branches
  1. 5 glossary.module \glossary_search_form()
  2. 6 glossary.module \glossary_search_form()
  3. 7 glossary.module \glossary_search_form()
2 string references to 'glossary_search_form'
glossary_block in ./glossary.module
Implementation of hook_block().
glossary_search_results in ./glossary.module

File

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

Code

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