summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-03-26 13:31:28 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-03-26 13:31:28 +0000
commiteecab1083a718ccf18e6451df6108803f4d0c1be (patch)
treec97f1d2d434aa21fe84c9b202d264d0d7574860c /modules/user/user.module
parent87f82a61271b6f22eb0de8476e1b32dcbb4755f1 (diff)
downloadbrdo-eecab1083a718ccf18e6451df6108803f4d0c1be.tar.gz
brdo-eecab1083a718ccf18e6451df6108803f4d0c1be.tar.bz2
#369964 by yched and bjaspan: Refactor field validation and error reporting. Field API no longer coupled to Form API. Hooray.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 66cb92fa9..ac15ecdbe 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -485,8 +485,8 @@ function user_save($account, $edit = array(), $category = 'account') {
}
// Save Field data.
- $obj = (object) $edit;
- field_attach_update('user', $obj);
+ $object = (object) $edit;
+ field_attach_update('user', $object);
// Refresh user object.
$user = user_load($account->uid, TRUE);
@@ -521,8 +521,8 @@ function user_save($account, $edit = array(), $category = 'account') {
// Build the initial user object.
$user = user_load($edit['uid'], TRUE);
- $obj = (object) $edit;
- field_attach_insert('user', $obj);
+ $object = (object) $edit;
+ field_attach_insert('user', $object);
user_module_invoke('insert', $edit, $user, $category);