From: colemanw Date: Wed, 5 Feb 2014 18:40:11 +0000 (-0800) Subject: Merge pull request #2454 from eileenmcnaughton/CRM-14159 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=178df25980c8ff1be4656230734c823241371fe2;p=civicrm-core.git Merge pull request #2454 from eileenmcnaughton/CRM-14159 CRM-14159 API Add generic options['metadata'] = labels functionality --- 178df25980c8ff1be4656230734c823241371fe2 diff --cc api/v3/utils.php index ce2a2d8efb,7baf7d4867..d9043a9044 --- a/api/v3/utils.php +++ b/api/v3/utils.php @@@ -966,9 -971,9 +972,9 @@@ function _civicrm_api3_api_check_permis */ function _civicrm_api3_basic_get($bao_name, &$params, $returnAsSuccess = TRUE, $entity = "") { $bao = new $bao_name(); - _civicrm_api3_dao_set_filter($bao, $params, TRUE,$entity); + _civicrm_api3_dao_set_filter($bao, $params, TRUE, $entity); if ($returnAsSuccess) { - return civicrm_api3_create_success(_civicrm_api3_dao_to_array($bao, $params, FALSE, $entity), $params, $entity); + return civicrm_api3_create_success(_civicrm_api3_dao_to_array($bao, $params, FALSE, $entity), $params, $entity, 'get'); } else { return _civicrm_api3_dao_to_array($bao, $params, FALSE, $entity);