function brainstorm_profile_install_configure_form_custom_submit in Brainstorm profile 8
Submit callback.
See also
system_form_install_configure_form_alter()
1 string reference to 'brainstorm_profile_install_configure_form_custom_submit'
- brainstorm_profile_form_alter in ./
brainstorm_profile.profile - Implements hook_form_alter().
File
- ./
brainstorm_profile.profile, line 42 - Enables modules and site configuration for a standard site installation.
Code
function brainstorm_profile_install_configure_form_custom_submit($form, FormStateInterface &$form_state) {
if ($form_state
->getValue('send_message')) {
\Drupal::service('module_installer')
->install([
'profile_stat_sender',
]);
}
}