Chris@0: /** Chris@0: * Implements hook_user_presave(). Chris@0: */ Chris@0: function {{ machine_name }}_user_presave(&$edit, $account, $category) { Chris@0: // Make sure that our form value 'mymodule_foo' is stored as Chris@0: // 'mymodule_bar' in the 'data' (serialized) column. Chris@0: if (isset($edit['mymodule_foo'])) { Chris@0: $edit['data']['mymodule_bar'] = $edit['mymodule_foo']; Chris@0: } Chris@0: }