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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chrisrockwell created an issue. See original summary.

chrisrockwell’s picture

Status: Active » Needs review
interX’s picture

Any reason why images can not be altered before saving? I can imagine a use case for that too.

sanduhrs’s picture

Changed the signature a bit and added documentation.
Please have a look if this is still working for you.

Mario Steinitz’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

jcnventura’s picture

Status: Closed (fixed) » Needs work

We should not alter public APIs in the beta phase.. The older hook_openid_connect_save_userinfo() must be re-instated, and marked deprecated.

  • jcnventura authored 08b87c5 on 8.x-1.x
    Issue #2912214 by jcnventura: Restore deprecated...
jcnventura’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.