You are here

function _social_group_set_default_configuration in Open Social 8.2

Same name and namespace in other branches
  1. 8 modules/social_features/social_group/social_group.install \_social_group_set_default_configuration()
  2. 8.3 modules/social_features/social_group/social_group.install \_social_group_set_default_configuration()
  3. 8.4 modules/social_features/social_group/social_group.install \_social_group_set_default_configuration()
  4. 8.5 modules/social_features/social_group/social_group.install \_social_group_set_default_configuration()
  5. 8.6 modules/social_features/social_group/social_group.install \_social_group_set_default_configuration()
  6. 8.7 modules/social_features/social_group/social_group.install \_social_group_set_default_configuration()

Function to set default configuration.

2 calls to _social_group_set_default_configuration()
social_group_install in modules/social_features/social_group/social_group.install
Implements hook_install().
social_group_update_8009 in modules/social_features/social_group/social_group.install
Set the default group configuration and permission for sitemanager.

File

modules/social_features/social_group/social_group.install, line 154
Install, update and uninstall functions for the social_group module.

Code

function _social_group_set_default_configuration() {
  $config = \Drupal::configFactory()
    ->getEditable('social_group.settings');
  $config
    ->set('allow_group_selection_in_node', FALSE);
  $config
    ->save();
}