public function CiviCrmCoreFields::fetchLocationType in CRM Core 7
Returns value based on the civicrm_location_type database table.
1 call to CiviCrmCoreFields::fetchLocationType()
- 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 182
Class
Code
public function fetchLocationType($id) {
$type = crm_core_data_import_civicrm_api('location_type', 'get', array(
'id' => $id,
));
$type = reset($type);
if (!empty($type['id'])) {
return $type['name'];
}
return $id;
}