projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'upstream/4.4' into 4.4-4.5-2014-10-14-11-16-10
[civicrm-core.git]
/
api
/
v3
/
Grant.php
diff --git
a/api/v3/Grant.php
b/api/v3/Grant.php
index 52d7a81f0d91c8ea79e511a063bc8733b984f826..797e03439ca0e12caff0c8f20f7c6582667e6a04 100644
(file)
--- a/
api/v3/Grant.php
+++ b/
api/v3/Grant.php
@@
-49,10
+49,7
@@
* @access public
*/
function civicrm_api3_grant_create($params) {
* @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
*
/**
* 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
*
* 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) {
* {@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'
);
}
/**
}
/**