<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
* Get CiviCRM domain details
* {@getfields domain_create}
* @example DomainGet.php
+ * @param array $params
+ * @return array
+ * @throws \API_Exception
*/
function civicrm_api3_domain_get($params) {
if (!empty($domain['contact_id'])) {
$values = array();
$locparams = array(
- 'contact_id' => $domain['contact_id']
+ 'contact_id' => $domain['contact_id'],
);
$values['location'] = CRM_Core_BAO_Location::getValues($locparams, TRUE);
'phone' => CRM_Utils_Array::value(
'phone',
$values['location']['phone'][1]
- )
+ ),
);
}