function hook_social_group_hide_types_alter in Open Social 10.2.x
Same name and namespace in other branches
- 10.3.x modules/social_features/social_group/social_group.api.php \hook_social_group_hide_types_alter()
- 10.1.x modules/social_features/social_group/social_group.api.php \hook_social_group_hide_types_alter()
Hide group types used in open social.
Parameters
array $hidden_types: List of group type id's which you want to see removed.
1 invocation of hook_social_group_hide_types_alter()
- SocialGroupHelperService::countGroupMembershipsForUser in modules/
social_features/ social_group/ src/ SocialGroupHelperService.php - Count all group memberships for a certain user.
File
- modules/
social_features/ social_group/ social_group.api.php, line 36 - Hooks provided by the Social Group module.
Code
function hook_social_group_hide_types_alter(array &$hidden_types) {
$hidden_types[] = 'challenge';
}