Commit f905ab18 authored by Dries's avatar Dries

- Patch #34031 by drewish: delete button on the edit user account form should...

- Patch #34031 by drewish: delete button on the edit user account form should be after the submit button.
parent 278e2dd3
......@@ -1278,7 +1278,7 @@ function user_edit($category = 'account') {
$form = _user_forms($edit, $account, $category);
$form['submit'] = array('#type' => 'submit', '#value' => t('Submit'), '#weight' => 30);
if (user_access('administer users')) {
$form['delete'] = array('#type' => 'submit', '#value' => t('Delete'), '#weight' => 30);
$form['delete'] = array('#type' => 'submit', '#value' => t('Delete'), '#weight' => 31);
}
$form['#attributes'] = array('enctype' => 'multipart/form-data');
......
......@@ -1278,7 +1278,7 @@ function user_edit($category = 'account') {
$form = _user_forms($edit, $account, $category);
$form['submit'] = array('#type' => 'submit', '#value' => t('Submit'), '#weight' => 30);
if (user_access('administer users')) {
$form['delete'] = array('#type' => 'submit', '#value' => t('Delete'), '#weight' => 30);
$form['delete'] = array('#type' => 'submit', '#value' => t('Delete'), '#weight' => 31);
}
$form['#attributes'] = array('enctype' => 'multipart/form-data');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment