You are here

function biblio_admin_types_add_form in Bibliography Module 7.2

Same name and namespace in other branches
  1. 6.2 includes/biblio.admin.inc \biblio_admin_types_add_form()
  2. 6 biblio.admin.inc \biblio_admin_types_add_form()
  3. 7 includes/biblio.admin.inc \biblio_admin_types_add_form()

File

includes/biblio.admin.inc, line 1421

Code

function biblio_admin_types_add_form($form, &$form_state) {
  $form['name'] = array(
    '#type' => 'textfield',
    '#title' => t('Type Name'),
    '#size' => 20,
    '#weight' => 1,
    '#required' => TRUE,
    '#maxlength' => 64,
  );
  $form['description'] = array(
    '#type' => 'textfield',
    '#title' => t('Description'),
    '#size' => 60,
    '#weight' => 2,
    '#maxlength' => 255,
  );
  $form['type_button'] = array(
    '#type' => 'submit',
    '#value' => t('Create New Type'),
    '#weight' => 3,
  );
  return $form;
}