You are here

function social_features_submit in Open Social 8.3

Same name and namespace in other branches
  1. 8 social.profile \social_features_submit()
  2. 8.2 social.profile \social_features_submit()
  3. 8.4 social.profile \social_features_submit()
  4. 8.5 social.profile \social_features_submit()
  5. 8.6 social.profile \social_features_submit()
  6. 8.7 social.profile \social_features_submit()

Submit handler.

1 string reference to 'social_features_submit'
social_form_install_configure_form_alter in ./social.profile
Implements hook_form_FORM_ID_alter() for install_configure_form().

File

./social.profile, line 175
Enables modules and site configuration for a social site installation.

Code

function social_features_submit($form_id, &$form_state) {
  $optional_modules = array_filter($form_state
    ->getValue('optional_modules'));
  \Drupal::state()
    ->set('social_install_optional_modules', $optional_modules);
  \Drupal::state()
    ->set('social_install_demo_content', $form_state
    ->getValue('demo_content'));
}