/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.4 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
return civicrm_api3_create_success($values, $params);
}
else {
- return civicrm_api3_create_error($result['error_message']);
+ throw new API_Exception($result['error_message']);
}
}
else {
continue;
}
$fieldNumber = $idArray[1];
- $info = array_pop(CRM_Core_BAO_CustomField::getNameFromID($fieldNumber));
+ $customFieldInfo = CRM_Core_BAO_CustomField::getNameFromID($fieldNumber);
+ $info = array_pop($customFieldInfo);
// id is the index for returned results
if (empty($idArray[2])) {
*/
function _civicrm_api3_custom_value_get_spec(&$params) {
$params['entity_id']['api.required'] = 1;
-}
\ No newline at end of file
+}