diff options
Diffstat (limited to 'modules/user')
-rw-r--r-- | modules/user/user.module | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index 188884290..baab4e935 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1621,15 +1621,12 @@ function user_edit($form_state, $category = 'account') { return $form; } -function user_confirm_delete(&$form_state, $name, $uid) { - $options = array( - 'description' => t('All submissions made by this user will be attributed to the anonymous account. This action cannot be undone.'), - 'cancel' => 'user/'. $uid, - ); +function user_confirm_delete($name, $uid) { + $options = array('description' => t('All submissions made by this user will be attributed to the anonymous account. This action cannot be undone.')); return confirm_form(array(), t('Are you sure you want to delete the account %name?', array('%name' => $name)), - 'admin/user/user', + 'user/'. $uid, $options); } @@ -1863,7 +1860,10 @@ function user_admin_access_delete_confirm($aid = 0) { $form['aid'] = array('#type' => 'hidden', '#value' => $aid); $output = confirm_form($form, t('Are you sure you want to delete the @type rule for %rule?', array('@type' => $access_types[$edit->type], '%rule' => $edit->mask)), - 'admin/user/rules'); + 'admin/user/rules', + t('This action cannot be undone.'), + t('Delete'), + t('Cancel')); return $output; } @@ -2464,11 +2464,10 @@ function user_multiple_delete_confirm(&$form_state) { } $form['operation'] = array('#type' => 'hidden', '#value' => 'delete'); - $options = array('yes' => t('Delete all')); - return confirm_form($form, t('Are you sure you want to delete these users?'), - 'admin/user/user', $options); + 'admin/user/user', t('This action cannot be undone.'), + t('Delete all'), t('Cancel')); } function user_multiple_delete_confirm_submit($form, &$form_state) { |