Commit b8c6c4d3 authored by Kjartan's avatar Kjartan

- Fixed bug #7406: User delete hook incorrect params.

parent 065d28d0
......@@ -1433,7 +1433,7 @@ function user_admin_edit($edit = array()) {
db_query("DELETE FROM {users} WHERE uid = %d", $account->uid);
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);
module_invoke_all('user', 'delete', $edit, $account);
return user_admin_account();
else {
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