06 March, 2011

Drupal Module - Get Profile Values

How to get profile values in your module. First define/get global value, use profile_load_profile function and print_r for viewing the results.
<?php
global $user;
profile_load_profile($user);
print_r($user);
?>

No comments:

Post a Comment