function biblio_search_form in Bibliography Module 7
Same name and namespace in other branches
- 6.2 includes/biblio.pages.inc \biblio_search_form()
- 6 biblio.pages.inc \biblio_search_form()
- 7.2 includes/biblio.pages.inc \biblio_search_form()
Parameters
$form_state:
1 string reference to 'biblio_search_form'
- biblio_page_header in includes/
biblio.pages.inc
File
- includes/
biblio.pages.inc, line 906 - Copyright (C) 2006-2011 Ron Jerome.
Code
function biblio_search_form($form, &$form_state) {
$base = variable_get('biblio_base', 'biblio');
$searchform['biblio_search'] = array(
'#prefix' => '<div class="container-inline biblio-search clear-block">',
'#suffix' => '</div>',
);
$searchform['biblio_search']['keys'] = array(
'#type' => 'textfield',
'#title' => '',
'#default_value' => '',
'#size' => 25,
'#maxlength' => 255,
);
$button_text = variable_get('biblio_search_button_text', 'Biblio search');
$searchform['biblio_search']['submit'] = array(
'#type' => 'submit',
'#value' => t($button_text),
);
$form['search_form'] = array(
'#type' => 'fieldset',
'#title' => t('Search'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'searchform' => $searchform,
);
if (variable_get('biblio_search_form_filter', TRUE)) {
$form['search_form']['filterform'] = biblio_form_filter();
}
return $form;
}