X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FGroupOrganization.php;h=73a643785536cccc65bb95155b0122a53c4929a2;hb=b0a317143b2c1a6aee3b6bc99ef31532881f652e;hp=baca0dd3b9440d62581474e4a6af478226f8e67a;hpb=04d2e082924ee167fa35b78dfaacfaef07c8cd8a;p=civicrm-core.git diff --git a/api/v3/GroupOrganization.php b/api/v3/GroupOrganization.php index baca0dd3b9..73a6437855 100644 --- a/api/v3/GroupOrganization.php +++ b/api/v3/GroupOrganization.php @@ -26,44 +26,32 @@ */ /** - * File for the CiviCRM APIv3 group contact functions + * This api exposes the relationships between organizations and CiviCRM groups. * * @package CiviCRM_APIv3 - * @subpackage API_Group - * - * @copyright CiviCRM LLC (c) 2004-2014 - * @version $Id: GroupContact.php 21624 2009-06-04 22:02:55Z mover $ - * */ /** - * This API will give list of the groups for particular contact - * Particualr status can be sent in params array - * If no status mentioned in params, by default 'added' will be used - * to fetch the records + * Get group organization record/s. * * @param array $params * Name value pair of contact information. - * {@getfields GroupOrganization_get} - * @example GroupOrganizationGet.php * * @return array - * list of groups, given contact subsribed to + * list of groups, given contact subscribed to */ function civicrm_api3_group_organization_get($params) { return _civicrm_api3_basic_get('CRM_Contact_DAO_GroupOrganization', $params); } /** - * @example GroupOrganizationCreate.php - * {@getfields GroupOrganization_create} + * Create group organization record. * * @param array $params * Array. * * @return array - * */ function civicrm_api3_group_organization_create($params) { @@ -78,11 +66,12 @@ function civicrm_api3_group_organization_create($params) { } /** - * Adjust Metadata for Create action + * Adjust Metadata for Create action. + * + * The metadata is used for setting defaults, documentation & validation. * - * The metadata is used for setting defaults, documentation & validation * @param array $params - * Array or parameters determined by getfields. + * Array of parameters determined by getfields. */ function _civicrm_api3_group_organization_create_spec(&$params) { $params['organization_id']['api.required'] = 1; @@ -90,7 +79,7 @@ function _civicrm_api3_group_organization_create_spec(&$params) { } /** - * Deletes an existing Group Organization + * Deletes an existing Group Organization. * * This API is used for deleting a Group Organization * @@ -99,8 +88,6 @@ function _civicrm_api3_group_organization_create_spec(&$params) { * * @return array * API Result - * {@getfields GroupOrganization_delete} - * @example GroupOrganizationDelete.php */ function civicrm_api3_group_organization_delete($params) {