Posted by bahman2216 on December 28, 2012 at 7:45am
I make a registration form with profile2 and some fields.
I want to fetch family field with name: field_family
I used this code to display specified field:
$uid = user_load($user->uid);
$profile_somename = profile2_load_by_user($uid, 'profile_main');
but it doesn't work!