X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FCampaign.php;h=3f56d470bba711f2a6f3a15569869d51c9eb9019;hb=af3775b322b9e4f11d097067367f0ea7763f5f10;hp=336d1eb4ef1114611c5fdb7c8b227dfc031ce74f;hpb=39de6fd54b9843705d13cb9f70fbcc6296103670;p=civicrm-core.git diff --git a/api/v3/Campaign.php b/api/v3/Campaign.php index 336d1eb4ef..3f56d470bb 100644 --- a/api/v3/Campaign.php +++ b/api/v3/Campaign.php @@ -1,5 +1,4 @@ value pairs. If $params is set - * as null, all campaigns will be returned + * @param array $params + * Array per getfields * - * @return array Array of matching campaigns - * @access public - * {@getfields campaign_get} + * @return array + * Array of matching campaigns */ function civicrm_api3_campaign_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, 'Campaign'); } /** - * delete an existing campaign + * Delete an existing campaign. * - * This method is used to delete any existing campaign. id of the group - * to be deleted is required field in $params array + * This method is used to delete any existing campaign. + * Id of the campaign to be deleted is required field in $params array * - * @param array $params (reference) array containing id of the group - * to be deleted + * @param array $params + * array containing id of the group to be deleted * - * @return array (reference) returns flag true if successful, error - * message otherwise - * {@getfields campaign_delete} - * @access public + * @return array */ function civicrm_api3_campaign_delete($params) { return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params); } -