diff options
Diffstat (limited to 'modules/user/user.module')
-rw-r--r-- | modules/user/user.module | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index 0f95e10d1..7918f09c3 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1621,12 +1621,15 @@ function user_edit($form_state, $category = 'account') { return $form; } -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.')); +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, + ); return confirm_form(array(), t('Are you sure you want to delete the account %name?', array('%name' => $name)), - 'user/'. $uid, + 'admin/user/user', $options); } |