X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=api%2Fv3%2FGroup.php;h=59ab73fcf4f097135fcfe28a8fa65bba5c1200f5;hb=b0a317143b2c1a6aee3b6bc99ef31532881f652e;hp=921e3ce97a177dc76bacdf502fb3a58fefa19cf2;hpb=a969ba2b3fc64eebf12a98e3bfc69212d832ee19;p=civicrm-core.git diff --git a/api/v3/Group.php b/api/v3/Group.php index 921e3ce97a..59ab73fcf4 100644 --- a/api/v3/Group.php +++ b/api/v3/Group.php @@ -1,8 +1,7 @@ value pairs. If $params is set - * as null, all groups will be returned + * @param array $params + * Array of properties. If empty, all records will be returned. * - * @return array Array of matching groups - * @example GroupGet.php - * {@getfields group_get} - * @access public + * @return array + * Array of matching groups */ function civicrm_api3_group_get($params) { $options = _civicrm_api3_get_options_from_params($params, TRUE, 'group', 'get'); - if(empty($options['return']) || !in_array('member_count', $options['return'])) { + if (empty($options['return']) || !in_array('member_count', $options['return'])) { return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params, TRUE, 'Group'); } @@ -92,23 +83,16 @@ function civicrm_api3_group_get($params) { } /** - * delete an existing group + * Delete an existing group. * - * This method is used to delete any existing group. id of the group - * to be deleted is required field in $params array + * @param array $params + * [id] * - * @param array $params array containing id of the group - * to be deleted - * - * @return array API result array - *@example GroupDelete.php - *{@getfields group_delete} - * - * @access public + * @return array + * API result array */ function civicrm_api3_group_delete($params) { CRM_Contact_BAO_Group::discard($params['id']); return civicrm_api3_create_success(TRUE); } -