summaryrefslogtreecommitdiff
path: root/modules/user.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-03-12 18:42:08 +0000
committerDries Buytaert <dries@buytaert.net>2004-03-12 18:42:08 +0000
commit70c484c077a054c29400260fbfe86c814b434b97 (patch)
tree08d1dc2e1d3e747a59d2a11c1e04cc5661bf10ee /modules/user.module
parenta71c5ef5387f7758c85a9ac47f6e90155ef2d787 (diff)
downloadbrdo-70c484c077a054c29400260fbfe86c814b434b97.tar.gz
brdo-70c484c077a054c29400260fbfe86c814b434b97.tar.bz2
- Patch #6391 by jik: after deleting a user, return to the user list, not the edit user form.
Diffstat (limited to 'modules/user.module')
-rw-r--r--modules/user.module1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/user.module b/modules/user.module
index 1dbc33daf..825d698ce 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -1526,6 +1526,7 @@ function user_admin_edit($edit = array()) {
db_query("DELETE FROM {authmap} WHERE uid = %d", $account->uid);
drupal_set_message(t("the account has been deleted."));
module_invoke_all('user', 'delete', $account, $user);
+ return user_admin_account();
}
else {
$error = t("Failed to delete account: the account has to be blocked first.");