Equivalent to nodeprofile_load for the module CONTENT PROFILE?

Events happening in the community are now at Drupal community events on www.drupal.org.
gabocas's picture

Hi!

Can anybody help me telling me what is the equivalent function to nodeprofile_load (valid for the module node profile) for the module content profile?

Thanks in advance,

Gabriel

Comments

Hi, It would be this

alex.k's picture

Hi,

It would be this function in content_profile.module:

<?php
/**
* Loads the node, like node_load but makes sure the results are cached.
*
* @param $type
*   The content profile's type
* @param $uid
*   The profile owner's user id
* @param $lang
*   Optional. If translation is enabled, the language of the profile to return.
*/
function content_profile_load($type, $uid, $lang = '') {
...
}
?>

Thanks!

gabocas's picture

Thank you alex.k for your quick and good answer, this function work perfect!

Best Regards,

Gabriel

Profiles as nodes

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: