When an application calls system.connect and the profile module is enabled then this patch will include the user's profile information as part of the object that is returned by the system.connect service.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | system_service-user_load.patch | 334 bytes | arithmetric |
| system_service_module.patch | 92 bytes | Anonymous (not verified) |
Comments
Comment #1
robloachNeat idea, might it be good to instead create a user.load function as part of the user service? Then we could load user data from any user.
Comment #2
marcingy commentedComment #3
snelson commentedComment #4
magico commented+1
Comment #5
marcingy commentedComment #6
arithmetric commentedI recently had the same problem and made this patch to load the user object during system.connect. It would be great to see this merged in soon.
Thanks.
Comment #7
marcingy commentedThis can be achieved by calling user.get after calling the connect function.
Comment #8
tyler.frankenstein commentedHere's how to post process the System Connect call in Drupal 7 to return a fully loaded user account object:
Comment #9
tyler.frankenstein commentedNot sure how I managed to change it to 8.x, I guess I'll change it to 7.x as that's the most relevant now-ish.