* - version: string
* - function: callback (mixed)
* - params: array, varies
- * @return array API success object
+ * @return array API success object
*/
function civicrm_api3_generic_getfields($apiRequest) {
static $results = array();
$metadata['id']['api.aliases'] = array($lcase_entity . '_id');
}
}
- else{
+ else {
// really the preference would be to set the unique name in the xml
// question is which is a less risky fix this close to a release - setting in xml for the known failure
// (note) or setting for all api where fields is returning 'id' & we want to accept 'note_id' @ the api layer
'title' => 'Context',
),
);
- break;
+ break;
+
default:
// oddballs are on their own
$metadata = array();
function civicrm_api3_generic_getcount($apiRequest) {
$apiRequest['params']['options']['is_count'] = TRUE;
$result = civicrm_api($apiRequest['entity'], 'get', $apiRequest['params']);
- if (is_numeric (CRM_Utils_Array::value('values', $result))) {
+ if (is_numeric(CRM_Utils_Array::value('values', $result))) {
return (int) $result['values'];
}
if (!isset($result['count'])) {