You are here

public function CiviCrmCoreFields::fetchFieldValue in CRM Core 7

Returns value based on the getfields CiviCRM API method.

1 call to CiviCrmCoreFields::fetchFieldValue()
CiviCrmCoreFields::prepareRow in modules/crm_core_data_import/plugins/conversion/CiviCrmCoreFields.inc
Process row of data.

File

modules/crm_core_data_import/plugins/conversion/CiviCrmCoreFields.inc, line 155

Class

CiviCrmCoreFields

Code

public function fetchFieldValue($field, $value, $entity_type) {
  $fields = crm_core_data_import_civicrm_api($entity_type, 'getfields');
  if (!empty($fields[$field]['options'][$value])) {
    return $fields[$field]['options'][$value];
  }
  return $value;
}