X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FGrant.php;h=797e03439ca0e12caff0c8f20f7c6582667e6a04;hb=42bf93368ea81b2fa70fab038f3c884755e1ab88;hp=52d7a81f0d91c8ea79e511a063bc8733b984f826;hpb=cc9b655cc2686260be3931d5b8ceba0df61abe8b;p=civicrm-core.git diff --git a/api/v3/Grant.php b/api/v3/Grant.php index 52d7a81f0d..797e03439c 100644 --- a/api/v3/Grant.php +++ b/api/v3/Grant.php @@ -49,10 +49,7 @@ * @access public */ function civicrm_api3_grant_create($params) { - $values = array(); - _civicrm_api3_custom_format_params($params, $values, 'Grant'); - $params = array_merge($values, $params); - return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params, 'grant'); + return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params, 'Grant'); } /** @@ -68,16 +65,16 @@ function _civicrm_api3_grant_create_spec(&$params) { /** * Returns array of grants matching a set of one or more group properties * - * @param array $params (referance) Array of one or more valid + * @param array $params Array of one or more valid * property_name=>value pairs. If $params is set * as null, all grants will be returned * - * @return array (referance) Array of matching grants + * @return array Array of matching grants * {@getfields grant_get} * @access public */ function civicrm_api3_grant_get($params) { - return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params); + return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params, TRUE, 'Grant'); } /**