The following action to add custom profile fields is using elgg_get_config('custom_profile_fields') and elgg_save_config('profile_custom_fields', $fieldlist) - http://reference.elgg.org/actions_2profile_2fields_2add_8php_source.html
How is the following view retrieving the values added in the previous action if the config "profile_fields" was never used there?http://reference.elgg.org/views_2default_2forms_2profile_2edit_8php_source.html#l00018
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Alejandro@dveloper
Alejandro - 0 likes
- ihayredinov@ihayredinov
ihayredinov - 0 likes
- Alejandro@dveloper
Alejandro - 0 likes
You must log in to post replies.I meant to say elgg_get_config('profile_custom_fields');
elgg_profile_fields_setup() is called on 'init', 'system' event.
https://github.com/Elgg/Elgg/blob/2.2/engine/lib/users.php#L614
Thank you, this really helped me understand how the array gets populated.