diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2007-06-24 10:09:53 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2007-06-24 10:09:53 +0000 |
commit | 7093495f7c209d712ce951cb57781710f19f2653 (patch) | |
tree | bb9360175b19f5820cafe1616cff79afede5dc64 /modules/user/user.module | |
parent | 028c8e60504546b1ad2342f168bbf5bf3d25f618 (diff) | |
download | brdo-7093495f7c209d712ce951cb57781710f19f2653.tar.gz brdo-7093495f7c209d712ce951cb57781710f19f2653.tar.bz2 |
#154046: Optimize confirm_form syntax for common usage (and fix some $form_state bugs).
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); } |