- Patch #504390 by Xano: taxonomy form UI improvements.

merge-requests/26/head
Dries Buytaert 2009-06-28 12:04:56 +00:00
parent ee7d9bb2c0
commit 59339ea1f4
1 changed files with 2 additions and 5 deletions

View File

@ -126,10 +126,9 @@ function taxonomy_form_vocabulary(&$form_state, $edit = array()) {
} }
$form['name'] = array( $form['name'] = array(
'#type' => 'textfield', '#type' => 'textfield',
'#title' => t('Vocabulary name'), '#title' => t('Name'),
'#default_value' => $edit['name'], '#default_value' => $edit['name'],
'#maxlength' => 255, '#maxlength' => 255,
'#description' => t('The name for this vocabulary, e.g., <em>"Tags"</em>.'),
'#required' => TRUE, '#required' => TRUE,
'#field_suffix' => ' <small id="vocabulary-name-suffix">&nbsp;</small>', '#field_suffix' => ' <small id="vocabulary-name-suffix">&nbsp;</small>',
); );
@ -152,14 +151,12 @@ function taxonomy_form_vocabulary(&$form_state, $edit = array()) {
'#type' => 'textfield', '#type' => 'textfield',
'#title' => t('Description'), '#title' => t('Description'),
'#default_value' => $edit['description'], '#default_value' => $edit['description'],
'#description' => t('Description of the vocabulary; can be used by modules.'),
); );
$form['nodes'] = array( $form['nodes'] = array(
'#type' => 'checkboxes', '#type' => 'checkboxes',
'#title' => t('Content types'), '#title' => t('Apply to content types'),
'#default_value' => $edit['nodes'], '#default_value' => $edit['nodes'],
'#options' => array_map('check_plain', node_type_get_names()), '#options' => array_map('check_plain', node_type_get_names()),
'#description' => t('Select content types to categorize using this vocabulary.'),
); );
$form['settings'] = array( $form['settings'] = array(
'#type' => 'fieldset', '#type' => 'fieldset',