I want the values "moodle_user_info_data" of a user

Re: I want the values "moodle_user_info_data" of a user

by Davo Smith -
Number of replies: 0
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

$USER->profile is an array of custom field data, in the format shortname => value.

As for updating the value,  you could take a look at the profile_save_data() function in profile/lib.php to see how the values are saved when you edit the user profile page.