$this->_context = CRM_Utils_Request::retrieve('context', 'String', $this);
}
- /**
- * This function sets the default values for the form. GroupContact that in edit/view mode
- * the default values are retrieved from the database
- *
- * @access public
- *
- * @return None
- */
- function setDefaultValues() {
- $defaults = array();
- $params = array();
-
- return $defaults;
- }
-
- /**
- * This function is used to add the rules for form.
- *
- * @return None
- * @access public
- */
- function addRules() {}
-
/**
* Function to build the form
*
}
// Arrange groups into hierarchical listing (child groups follow their parents and have indentation spacing in title)
- $ids = implode(',', array_keys($allGroups));
- $ids = 'IN (' . $ids . ')';
- $groupHierarchy = CRM_Contact_BAO_Group::getGroupsHierarchy($ids, NULL, ' ', TRUE);
+ $groupHierarchy = CRM_Contact_BAO_Group::getGroupsHierarchy($allGroups, NULL, ' ', TRUE);
// get the list of groups contact is currently in ("Added") or unsubscribed ("Removed").
$currentGroups = CRM_Contact_BAO_GroupContact::getGroupList($this->_contactId);