diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-01-18 03:33:43 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-01-18 03:33:43 +0000 |
commit | d7a7ec64e0e10c8238e6d795d90b1fb9a585e535 (patch) | |
tree | 8ec5bca951d52ba43e468edf7b89a3d948e12ff1 /modules/taxonomy/taxonomy.admin.inc | |
parent | f00065740b4ce4c7d92d110a13746e94baae538e (diff) | |
download | brdo-d7a7ec64e0e10c8238e6d795d90b1fb9a585e535.tar.gz brdo-d7a7ec64e0e10c8238e6d795d90b1fb9a585e535.tar.bz2 |
- Patch #678590 by asimmonds, Dave Reid, Damien Tournoud: fixed path alias link being below submit button on taxonomy term add.
Diffstat (limited to 'modules/taxonomy/taxonomy.admin.inc')
-rw-r--r-- | modules/taxonomy/taxonomy.admin.inc | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/modules/taxonomy/taxonomy.admin.inc b/modules/taxonomy/taxonomy.admin.inc index 57f77ca78..98cdf2fc8 100644 --- a/modules/taxonomy/taxonomy.admin.inc +++ b/modules/taxonomy/taxonomy.admin.inc @@ -664,6 +664,7 @@ function taxonomy_form_term($form, &$form_state, $edit = array(), $vocabulary = '#title' => t('Relations'), '#collapsible' => TRUE, '#collapsed' => $vocabulary->hierarchy < 2, + '#weight' => 10, ); // taxonomy_get_tree and taxonomy_get_parents may contain large numbers of @@ -702,23 +703,35 @@ function taxonomy_form_term($form, &$form_state, $edit = array(), $vocabulary = '#size' => 6, '#default_value' => $edit['weight'], '#description' => t('Terms are displayed in ascending order by weight.'), - '#required' => TRUE); + '#required' => TRUE, + ); $form['vid'] = array( '#type' => 'value', - '#value' => $vocabulary->vid); - $form['submit'] = array( + '#value' => $vocabulary->vid, + ); + $form['tid'] = array( + '#type' => 'value', + '#value' => $edit['tid'], + ); + + $form['actions'] = array( + '#type' => 'container', + '#attributes' => array('class' => array('form-actions')), + '#weight' => 100, + ); + $form['actions']['submit'] = array( '#type' => 'submit', - '#value' => t('Save')); + '#value' => t('Save'), + '#weight' => 5, + ); if ($edit['tid']) { - $form['delete'] = array( + $form['actions']['delete'] = array( '#type' => 'submit', '#value' => t('Delete'), '#access' => user_access("delete terms in $vocabulary->vid") || user_access('administer taxonomy'), + '#weight' => 10, ); - $form['tid'] = array( - '#type' => 'value', - '#value' => $edit['tid']); } else { $form_state['redirect'] = $_GET['q']; |