}
$groupTypes = self::extractGroupTypes($value['group_type']);
- $groupComponents = array('Contribution', 'Membership', 'Activity', 'Participant', 'Case');
- // drop Create, Edit and View mode links if profile group_type is Contribution, Membership, Activities or Participant
- $componentFound = array_intersect($groupComponents, array_keys($groupTypes));
+ // drop Create, Edit and View mode links if profile group_type is one of the following:
+ // Contribution, Membership, Activity, Participant, Case, Grant
+ $contactTypes = CRM_Contact_BAO_ContactType::contactTypes();
+ $contactTypes[] = 'Contact';
+ $componentFound = array_diff(array_keys($groupTypes), $contactTypes);
if (!empty($componentFound)) {
$action -= CRM_Core_Action::ADD;
}