From 12e0e14e53c0958bdcbc0e7fcd672399e3d6688f 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 34ee18d..379a37e 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -2509,7 +2509,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.1