mercredi 17 octobre 2012

Drupal : get profile2 custom field value

<?php
$myUser = profile2_load_by_user($uid,"your_profile_slug_id");
print $myUser->field_my_custom_field[LANGUAGE_NONE][0]["value"];
?>

Aucun commentaire:

Enregistrer un commentaire