You are here

function _civicrm_entity_profile_get_profile_entity_types in CiviCRM Entity 7.2

Returns an array of entity types for a Profile

Parameters

$profile_id:

Return value

array

File

modules/civicrm_entity_profile/includes/civicrm_entity_profile.profile.inc, line 261
CiviCRM Entity Profile, Profile Form generation and processing, utility functions

Code

function _civicrm_entity_profile_get_profile_entity_types($profile_id) {
  $uf_group = entity_load_single('civicrm_uf_group', $profile_id);
  if (!empty($uf_group->group_type)) {
    return !empty($uf_group->group_type) ? explode(',', $uf_group->group_type) : array();
  }
  return array();
}