You are here

function biblio_admin_types_add_form in Bibliography Module 7

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.2 includes/biblio.admin.inc \biblio_admin_types_add_form()

_state

Parameters

$form:

Return value

multitype:string number NULL

1 string reference to 'biblio_admin_types_add_form'
biblio_menu in ./biblio.module
Implements hook_menu().

File

includes/biblio.admin.inc, line 1563
biblio.admin.inc

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;
}