function _social_auth_extra_email_config_submit in Open Social 8.5
Same name and namespace in other branches
- 8.9 modules/custom/social_auth_extra/social_auth_extra.module \_social_auth_extra_email_config_submit()
- 8.3 modules/custom/social_auth_extra/social_auth_extra.module \_social_auth_extra_email_config_submit()
- 8.4 modules/custom/social_auth_extra/social_auth_extra.module \_social_auth_extra_email_config_submit()
- 8.6 modules/custom/social_auth_extra/social_auth_extra.module \_social_auth_extra_email_config_submit()
- 8.7 modules/custom/social_auth_extra/social_auth_extra.module \_social_auth_extra_email_config_submit()
- 8.8 modules/custom/social_auth_extra/social_auth_extra.module \_social_auth_extra_email_config_submit()
Stores the configuration for the social_auth_extra registration emails.
1 call to _social_auth_extra_email_config_submit()
- social_auth_extra_form_user_admin_settings_submit in modules/
custom/ social_auth_extra/ social_auth_extra.module - Custom submit function for user_admin_settings().
File
- modules/
custom/ social_auth_extra/ social_auth_extra.module, line 419 - Contains social_auth_extra.module.
Code
function _social_auth_extra_email_config_submit($form, FormStateInterface $form_state) {
$config = \Drupal::service('config.factory')
->getEditable('social_auth_extra.mail');
$config
->set('email_social_login', $form_state
->getValue('email_social_login'));
$config
->save();
}