So I'll just try to be dumping some things here for docu purposes. Feel free to comment, if you have more to add. I'll try as much as possible to update.
Guess this helps get the fields from the profile.
- Get the RH fields which are marked to show in the profile. If a $user_id is passed in, get fields based on the user's level.
function pmprorh_getProfileFields( $user_id, $withlocations = false )