X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FGroupContact.php;h=95a48a79ba617e5b0063089d0d07b491b85adc1d;hb=2241036a1adf3cf03fdcc86f4328ad98f89f6b59;hp=867241354231853fcf0a5385984a14b2cfcfd170;hpb=e9aca61e8b08d5ae372621c4397108b8f2ec28ba;p=civicrm-core.git diff --git a/api/v3/GroupContact.php b/api/v3/GroupContact.php index 8672413542..95a48a79ba 100644 --- a/api/v3/GroupContact.php +++ b/api/v3/GroupContact.php @@ -45,7 +45,8 @@ * If no status mentioned in params, by default 'added' will be used * to fetch the records * - * @param array $params name value pair of contact information + * @param array $params + * Name value pair of contact information. * {@getfields GroupContact_get} * * @return array list of groups, given contact subsribed to @@ -72,7 +73,8 @@ function civicrm_api3_group_contact_get($params) { * * @access public * - * @param array $params Input parameters + * @param array $params + * Input parameters. * * Allowed @params array keys are:
* "contact_id" (required) : first contact to add
@@ -185,10 +187,10 @@ function _civicrm_api3_group_contact_common($params, $op = 'Added') { $tracking = CRM_Utils_Array::value('tracking', $params); if ($op == 'Added' || $op == 'Pending') { - $extraReturnValues= array( + $extraReturnValues = array( 'total_count' => 0, 'added' => 0, - 'not_added' => 0 + 'not_added' => 0, ); foreach ($groupIDs as $groupID) { list($tc, $a, $na) = CRM_Contact_BAO_GroupContact::addContactsToGroup($contactIDs, @@ -203,10 +205,10 @@ function _civicrm_api3_group_contact_common($params, $op = 'Added') { } } else { - $extraReturnValues= array( + $extraReturnValues = array( 'total_count' => 0, 'removed' => 0, - 'not_removed' => 0 + 'not_removed' => 0, ); foreach ($groupIDs as $groupID) { list($tc, $r, $nr) = CRM_Contact_BAO_GroupContact::removeContactsFromGroup($contactIDs, $groupID, $method, $status, $tracking);