From e4c98800dc9830a5dbad2e19004f66eca398d4df Mon Sep 17 00:00:00 2001 From: Jennifer Hodgdon Date: Mon, 19 Mar 2012 07:15:27 -0700 Subject: Issue #1483664 by nmudgal, chertzog: Fix hook_user_presave example so it actually would work --- modules/user/user.api.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/user/user.api.php') 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']; } } -- cgit v1.2.3