[support] how to retrieve all entities associated with a profile?

Info Razor inforazor at gmail.com
Wed Mar 12 19:44:00 UTC 2014


Hello Drupal community! 

Does anyone know how I can retrieve all entities associated with a profile2 content type?

If I try via this method I get a NULL object:

if (module_exists('profile2')) {
  foreach (profile2_get_types() as $type) {
   // the following returns correctly the Profile Type object:
   //dpm (profile2_type_load($type->type));
   // the following returns NULL
   //dpm (profile2_load($type->id));
    }
}

Thanks for your help!

-- 
Info Razor
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20140312/2a52659f/attachment.html 


More information about the support mailing list