The Key will be not saved in the $user Object without the hook http://api.drupal.org/api/function/hook_user_presave/7.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | hook_user_presave.patch | 2.9 KB | gábor hojtsy |
| #9 | localekeys.patch | 1.08 KB | gábor hojtsy |
| #4 | 748664-l10n-save.patch | 3.05 KB | andypost |
| #3 | 748664-l10n-save.patch | 3.05 KB | andypost |
| #2 | 748664-l10n-save.patch | 2.31 KB | andypost |
Comments
Comment #1
tobiasbComment #2
andypostA bit improved patch after #763048: Remove drupal_unpack($user) due to namespacing collisions
Comment #3
andypostNow it works again
Comment #4
andypostSame patch with trim() for key as proposed in #323917-10: Support for the 2.0 remote server API
Comment #5
tobiasbComment #6
gábor hojtsyThe trimming functionality was just added in #http://drupal.org/node/323917#comment-2857042 to D6 as well, so the functionality is in sync with this patch, no need to backport that.
Comment #7
andypost@Gábor Hojtsy: I've just included trim() because this patch fixes saving functionality with hook_user_presave() and sync D7 with #323917-10: Support for the 2.0 remote server API
Comment #8
gábor hojtsyHa, BTW _locale_import_one_string_db() also changed API in D6, so I've just committed that one line to the D6 version already. Fixes some notices.
Comment #9
gábor hojtsyLooks good, works good. Committed to D7. Also noticed that the 'deletes' key way missing from the _locale_import_one_string_db() arrays in both D7 and D6. So also committed a small update to D6. Thanks for your great help!