diff options
author | Jennifer Hodgdon <yahgrp@poplarware.com> | 2012-03-19 07:15:27 -0700 |
---|---|---|
committer | Jennifer Hodgdon <yahgrp@poplarware.com> | 2012-03-19 07:15:27 -0700 |
commit | e4c98800dc9830a5dbad2e19004f66eca398d4df (patch) | |
tree | 262a1748821368aa74081c4a2771048236122743 | |
parent | 83805304412073cf0423698fede2f39f4598a24a (diff) | |
download | brdo-e4c98800dc9830a5dbad2e19004f66eca398d4df.tar.gz brdo-e4c98800dc9830a5dbad2e19004f66eca398d4df.tar.bz2 |
Issue #1483664 by nmudgal, chertzog: Fix hook_user_presave example so it actually would work
-rw-r--r-- | modules/user/user.api.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/user/user.api.php b/modules/user/user.api.php index 069a9f880..f610408dc 100644 --- a/modules/user/user.api.php +++ b/modules/user/user.api.php @@ -224,9 +224,10 @@ function hook_user_categories() { * @see hook_user_update() */ function hook_user_presave(&$edit, $account, $category) { - // Make sure that our form value 'mymodule_foo' is stored as 'mymodule_bar'. + // Make sure that our form value 'mymodule_foo' is stored as + // 'mymodule_bar' in the 'data' (serialized) column. if (isset($edit['mymodule_foo'])) { - $edit['data']['my_module_foo'] = $edit['my_module_foo']; + $edit['data']['mymodule_bar'] = $edit['mymodule_foo']; } } |