From a1e932f733086e7c66ae8d954484f63ee1309a2a Mon Sep 17 00:00:00 2001 From: Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> Date: Mon, 27 Feb 2006 22:51:31 +0000 Subject: [PATCH] #51127, hook_user submit passes incorrect values, patch by wtanaka --- modules/user.module | 2 +- modules/user/user.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/user.module b/modules/user.module index be46ff8ca997..90d4a1e1e69b 100644 --- a/modules/user.module +++ b/modules/user.module @@ -1391,7 +1391,7 @@ function user_edit_submit($form_id, $form_values) { $account = $form_values['_account']; $category = $form_values['_category']; unset($form_values['_account'], $form_values['submit'], $form_values['delete'], $form_values['form_id'], $form_values['_category']); - user_module_invoke('submit', $form_values, $form_values, $category); + user_module_invoke('submit', $form_values, $account, $category); user_save($account, $form_values, $category); // Delete that user's menu cache. cache_clear_all('menu:'. $account->uid, TRUE); diff --git a/modules/user/user.module b/modules/user/user.module index be46ff8ca997..90d4a1e1e69b 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1391,7 +1391,7 @@ function user_edit_submit($form_id, $form_values) { $account = $form_values['_account']; $category = $form_values['_category']; unset($form_values['_account'], $form_values['submit'], $form_values['delete'], $form_values['form_id'], $form_values['_category']); - user_module_invoke('submit', $form_values, $form_values, $category); + user_module_invoke('submit', $form_values, $account, $category); user_save($account, $form_values, $category); // Delete that user's menu cache. cache_clear_all('menu:'. $account->uid, TRUE); -- GitLab