From 7093495f7c209d712ce951cb57781710f19f2653 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Sun, 24 Jun 2007 10:09:53 +0000 Subject: #154046: Optimize confirm_form syntax for common usage (and fix some $form_state bugs). --- modules/user/user.module | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'modules/user/user.module') 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); } -- cgit v1.2.3