You are here

function hook_social_group_settings_alter in Open Social 10.3.x

Same name and namespace in other branches
  1. 10.1.x modules/social_features/social_group/social_group.api.php \hook_social_group_settings_alter()
  2. 10.2.x modules/social_features/social_group/social_group.api.php \hook_social_group_settings_alter()

Provide a method to extend group and content visibility to other group types.

Parameters

string $social_group_types: The group type id.

4 invocations of hook_social_group_settings_alter()
social_group_flexible_group_flexible_group_add_after_build in modules/social_features/social_group/modules/social_group_flexible_group/social_group_flexible_group.module
After_build function for the flexible group add form to add default states.
_social_group_get_allowed_visibility in modules/social_features/social_group/social_group.module
Get the allowed visibility of a group.
_social_group_get_group_visibility in modules/social_features/social_group/social_group.module
Get the group visibility label of a group.
_social_group_get_join_methods in modules/social_features/social_group/social_group.module
Get the join methods of a group.

File

modules/social_features/social_group/social_group.api.php, line 204
Hooks provided by the Social Group module.

Code

function hook_social_group_settings_alter(&$social_group_types) {
  $social_group_types[] = 'flexible_group';
}