function tripal_cv_add_form
1.x tripal_cv_admin.inc | tripal_cv_add_form(&$form_state = NULL) |
Purpose: Provides the Add controlled vocabulary form
Related topics
1 string reference to 'tripal_cv_add_form'
- tripal_cv_menu in tripal_cv/
tripal_cv.module - Implements hook_menu(). Registers all menu items associated with this module
File
- tripal_cv/
includes/ tripal_cv_admin.inc, line 178
Code
function tripal_cv_add_form(&$form_state = NULL) {
$form['cvid'] = array(
'#type' => 'hidden',
'#value' => $cvid
);
$form['name'] = array(
'#type' => 'textfield',
'#title' => t("Controlled Vocabulary name"),
'#description' => t('Please enter the name for this vocabulary. This field will be ignored if an OBO file or URL is provided above'),
'#required' => FALSE,
'#default_value' => $default_cv,
'#weight' => 1
);
$form['definition'] = array(
'#type' => 'textarea',
'#title' => t('Description'),
'#description' => t('Please enter a description for this vocabulary'),
'#default_value' => $default_desc,
'#weight' => 2
);
$form['add'] = array(
'#type' => 'submit',
'#value' => t('Add'),
'#weight' => 5,
'#executes_submit_callback' => TRUE,
);
$form['#redirect'] = 'admin/tripal/tripal_cv';
return $form;
}