Commit b554afbc authored by Dries's avatar Dries

- Patch #6391 by jik: after deleting a user, return to the user list, not the edit user form.

parent fc058baa
......@@ -1430,6 +1430,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.");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment