function social_features_submit in Open Social 8.6
Same name and namespace in other branches
- 8 social.profile \social_features_submit()
- 8.2 social.profile \social_features_submit()
- 8.3 social.profile \social_features_submit()
- 8.4 social.profile \social_features_submit()
- 8.5 social.profile \social_features_submit()
- 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 183 - 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'));
}