Drupal: Loading custom userprofile data

I have found that the core Drupal profile module provides very limited customization possibilities. However, the Usernode and Nodeprofile modules help out immensely with this.

If you want access to custom user profile fields, such as CCK fields, you simply load the profile:

PHP:
  1. <?php
  2. $usernode = nodeprofile_load('uprofile', $node->uid);
  3. ?>

tags: , , , , ,

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.