summaryrefslogtreecommitdiff
path: root/modules/user
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user')
-rw-r--r--modules/user/user.module2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index ba935046c..dca04f216 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -483,6 +483,7 @@ function user_save($account, $edit = array(), $category = 'account') {
}
user_module_invoke('update', $edit, $user, $category);
+ entity_invoke('update', 'user', $user);
}
else {
// Allow 'uid' to be set by the caller. There is no danger of writing an
@@ -515,6 +516,7 @@ function user_save($account, $edit = array(), $category = 'account') {
field_attach_insert('user', $object);
user_module_invoke('insert', $edit, $user, $category);
+ entity_invoke('insert', 'user', $user);
// Note, we wait with saving the data column to prevent module-handled
// fields from being saved there.