Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
If I use user_load(), should the fields in content profile be loaded?
I saw in earlier version, the fields were loaded, but that could cause problems (see related post http://drupal.org/node/237691)
Now it appears to me user_load() is no longer loading the content profile fields. Is this the final and correct behavior? Should I assume user_load() will never load the content profile fields? I would like to get a definitive answer so I can update my code accordingly.
Thx!
Comment | File | Size | Author |
---|---|---|---|
#2 | content_profile_user_load.patch | 2.38 KB | sdsheridan |
Comments
Comment #1
Sk8erPeter CreditAttribution: Sk8erPeter commentedI know this is an old topic, but I just got here.
I think in this case you should return to the stable 6.x-1.0, where user_load() loads all the appropriate Content Profile fields... I think this should be the normal behaviour.
Comment #2
sdsheridanAgreed. I suspect a number of things depend on this behaviour. I included the following in function_content_profile_user:
This code will load all content profile fields, and flatten those that can be easily flattened, which preserves behaviour that used to be there before, so other modules I have written wouldn't need to be3 changed.
Would be great to see this get into the next release! I've attached a patch.
Shawn