* 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
*
* @access public
*
- * @param array $params Input parameters
+ * @param array $params
+ * Input parameters.
*
* Allowed @params array keys are:<br>
* "contact_id" (required) : first contact to add<br>
$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,
}
}
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);