Equivalent to nodeprofile_load for the module CONTENT PROFILE?

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

Login to post comments

Hi, It would be this

alex.k - Thu, 2009-04-02 10:11

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 - Thu, 2009-04-02 12:23

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

Best Regards,

Gabriel