mysite_type_biblio_search_form

Definition

mysite_type_biblio_search_form($uid)
contrib/biblio.inc, line 181

Description

FormsAPI for mysite_type_biblio_search()

Code

function mysite_type_biblio_search_form($uid) {
  $form['add_biblio']['biblio_title'] = array('#type' => 'textfield',
    '#title' => t('User Name'),
    '#maxlength' => 64,
    '#description' => t('The user name of the author of the bibliography you wish to add.'),
    '#required' => TRUE,
    '#autocomplete_path' => 'autocomplete/mysite/biblio'
  );
  $form['add_biblio']['uid'] = array('#type' => 'hidden', '#value' => $uid);
  $form['add_biblio']['type'] = array('#type' => 'hidden', '#value' => 'biblio');
  $form['add_biblio']['submit'] = array('#type' => 'submit', '#value' => t('Add biblio'));
  return $form;
}