You are here

function lexicon_search_form in Lexicon 6

2 string references to 'lexicon_search_form'
lexicon_block in ./lexicon.module
Implementation of hook_block().
lexicon_search_results in ./lexicon.module

File

./lexicon.module, line 287
Lexicon is used to create lists of terms and definitions to use on a website and optionally mark them in the content with an indicator.

Code

function lexicon_search_form($form_state, $keys = NULL) {
  $form['#attributes'] = array(
    'class' => 'lexicon search-form',
  );
  $form['keys'] = array(
    '#type' => 'textfield',
    '#title' => '',
    '#default_value' => $keys,
    '#size' => 15,
  );
  $form['search'] = array(
    '#type' => 'submit',
    '#value' => t('Search'),
  );
  return $form;
}