X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FGrant.php;h=797e03439ca0e12caff0c8f20f7c6582667e6a04;hb=42bf93368ea81b2fa70fab038f3c884755e1ab88;hp=6eeec6400116fe579ef2f055cd5f05564f539a74;hpb=d0f466d1aec3f5f2f9f24635470a7df8d15b9b11;p=civicrm-core.git diff --git a/api/v3/Grant.php b/api/v3/Grant.php index 6eeec64001..797e03439c 100644 --- a/api/v3/Grant.php +++ b/api/v3/Grant.php @@ -2,9 +2,9 @@ /* +--------------------------------------------------------------------+ - | CiviCRM version 4.3 | + | CiviCRM version 4.5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2013 | + | Copyright CiviCRM LLC (c) 2004-2014 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -31,7 +31,7 @@ * * @package CiviCRM_APIv3 * @subpackage API_Grant - * @copyright CiviCRM LLC (c) 2004-2013 + * @copyright CiviCRM LLC (c) 2004-2014 */ /** @@ -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'); } /**