Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We can now store additional field types, e.g. string_long. It would be nice to alter the data prior to save.
For example, I get an array of json objects that I'd like to keep up-to-date in a user profile field. Currently, it will only save the first item in the array, with an alter hook I can prepare the data to be saved as a string.
Comment | File | Size | Author |
---|---|---|---|
#4 | allow_other_modules_to-2912214-4.patch | 2.62 KB | sanduhrs |
openid_connect--allow-alter-of-claim.patch | 542 bytes | chrisrockwell |
Comments
Comment #2
chrisrockwell CreditAttribution: chrisrockwell commentedComment #3
interX CreditAttribution: interX as a volunteer commentedAny reason why images can not be altered before saving? I can imagine a use case for that too.
Comment #4
sanduhrsChanged the signature a bit and added documentation.
Please have a look if this is still working for you.
Comment #6
Mario SteinitzComment #8
jcnventura CreditAttribution: jcnventura at 1xINTERNET commentedWe should not alter public APIs in the beta phase.. The older hook_openid_connect_save_userinfo() must be re-instated, and marked deprecated.
Comment #10
jcnventura CreditAttribution: jcnventura at 1xINTERNET commented