You are here

public function CivicrmActivityEntityType::getEntityFields in CRM Core 7

Returns available fields.

Overrides CivicrmEntityType::getEntityFields

File

modules/crm_core_data_import/plugins/source_plugins/civicrm/CivicrmActivityEntityType.inc, line 39

Class

CivicrmActivityEntityType

Code

public function getEntityFields($entity_type) {
  $activity_type = crm_core_data_get_civicrm_activity_type($entity_type);
  $fields = $this
    ->fetchFields($entity_type, $activity_type['value'], 'activity_type_id');
  $this
    ->attachExtraFields($fields, $this
    ->getEntityName(), $entity_type, $this
    ->getExtraFields());
  return $fields;
}