Drupal: Print User Profile in Body Content


I need to print user custom profile on my content body. I just need these code for print out my user profile.

<?php global $user; ?>
<?php $profile =  profile_load_profile($user); ?>
<?php print $user->profile_company_name; ?>
<?php print $user->profile_company_address; ?>

One response to “Drupal: Print User Profile in Body Content”

  1. body solid home gym for sale says :

    Genuinely no matter if someone doesn’t understand afterward its
    up to other users that they will help, so here it happens.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: