From 0ab707dc3378109aadd7bb3332f348c0e2b32f6e Mon Sep 17 00:00:00 2001 From: Bob Vincent Date: Fri, 11 Mar 2011 01:41:59 -0500 Subject: [PATCH] Issue #720876 by pillarsdotnet, user_register_validate should supply an object in third parameter to user_module_invoke --- modules/user/user.module | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/modules/user/user.module b/modules/user/user.module index a4dfe773ebe85e8b24306c44e697e8a672b49633..a1a12f756c97cba8c4719389f89568dc31e64a8e 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -2503,7 +2503,8 @@ if (Drupal.jsEnabled) { } function user_register_validate($form, &$form_state) { - user_module_invoke('validate', $form_state['values'], $form_state['values'], 'account'); + $account = (object) $form_state['values']; + user_module_invoke('validate', $form_state['values'], $account, 'account'); } /** -- 1.7.4.1