Skip to content
Snippets Groups Projects
Commit 592373ad authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #394544 by berenddeboer, Xano, chrisshattuck, karschsp, asimmonds:...

- Patch #394544 by berenddeboer, Xano, chrisshattuck, karschsp, asimmonds: more cllean up for the term form UI.
parent 578e363b
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -640,7 +640,7 @@ function taxonomy_form_term($form, &$form_state, $edit = array(), $vocabulary =
$form['name'] = array(
'#type' => 'textfield',
'#title' => t('Term name'),
'#title' => t('Name'),
'#default_value' => $edit['name'],
'#maxlength' => 255,
'#required' => TRUE);
......@@ -648,7 +648,6 @@ function taxonomy_form_term($form, &$form_state, $edit = array(), $vocabulary =
'#type' => 'textarea',
'#title' => t('Description'),
'#default_value' => $edit['description'],
'#description' => t('A description of the term. To be displayed on taxonomy/term pages and RSS feeds.'),
'#text_format' => $edit['format'],
);
......@@ -660,9 +659,9 @@ function taxonomy_form_term($form, &$form_state, $edit = array(), $vocabulary =
field_attach_form('taxonomy_term', (object) $edit, $form, $form_state);
$form['advanced'] = array(
$form['relations'] = array(
'#type' => 'fieldset',
'#title' => t('Advanced options'),
'#title' => t('Relations'),
'#collapsible' => TRUE,
'#collapsed' => $vocabulary->hierarchy < 2,
);
......@@ -688,7 +687,7 @@ function taxonomy_form_term($form, &$form_state, $edit = array(), $vocabulary =
$options[$term->tid] = str_repeat('-', $term->depth) . $term->name;
}
}
$form['advanced']['parent'] = array(
$form['relations']['parent'] = array(
'#type' => 'select',
'#title' => t('Parent terms'),
'#options' => $options,
......@@ -697,7 +696,7 @@ function taxonomy_form_term($form, &$form_state, $edit = array(), $vocabulary =
);
}
$form['advanced']['weight'] = array(
$form['relations']['weight'] = array(
'#type' => 'textfield',
'#title' => t('Weight'),
'#size' => 6,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment