You are here

function biblio_search_form in Bibliography Module 6.2

Same name and namespace in other branches
  1. 6 biblio.pages.inc \biblio_search_form()
  2. 7 includes/biblio.pages.inc \biblio_search_form()
  3. 7.2 includes/biblio.pages.inc \biblio_search_form()

Form constructor for the search form used on the main biblio page.

Parameters

array $form_state: This variable is not referenced in this function...

Return value

array An associative array with the form definition elements for a search field.

See also

biblio_search_form_submit()

1 string reference to 'biblio_search_form'
biblio_show_results in includes/biblio.pages.inc
biblio_show_results takes the query results from biblio_db_search and adds some controls to the page then loops through the results applying the selected style to each entry

File

includes/biblio.pages.inc, line 873
Functions in the biblio module related to filtering and page generation.

Code

function biblio_search_form(&$form_state) {
  $form['biblio_search'] = array(
    '#prefix' => '<div class="container-inline biblio-search clear-block">',
    '#suffix' => '</div>',
  );
  $form['biblio_search']['keys'] = array(
    '#type' => 'textfield',
    '#title' => '',
    '#default_value' => '',
    '#size' => 25,
    '#maxlength' => 255,
  );
  $button_text = variable_get('biblio_search_button_text', 'Biblio search');
  $form['biblio_search']['submit'] = array(
    '#type' => 'submit',
    '#value' => t($button_text),
  );
  return $form;
}