You are here

function _social_event_enroll_group_types in Open Social 8.7

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

Allow enrolling to an event of an open group for not a member.

2 calls to _social_event_enroll_group_types()
social_event_install in modules/social_features/social_event/social_event.install
Implements hook_install().
social_event_update_8001 in modules/social_features/social_event/social_event.install
Enable event enrolling of open groups for not member.

File

modules/social_features/social_event/social_event.install, line 125
Install, update and uninstall functions for the social_event module.

Code

function _social_event_enroll_group_types() {
  \Drupal::configFactory()
    ->getEditable('social_event.settings')
    ->set('enroll', [])
    ->save();
}