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!