/*
+--------------------------------------------------------------------+
- | 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. |
| |
*
* @package CiviCRM_APIv3
* @subpackage API_Grant
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
*/
/**
* @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');
}
/**
/**
* 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');
}
/**