You are here

function _social_auth_extra_email_config_submit in Open Social 8.4

Same name and namespace in other branches
  1. 8.9 modules/custom/social_auth_extra/social_auth_extra.module \_social_auth_extra_email_config_submit()
  2. 8.3 modules/custom/social_auth_extra/social_auth_extra.module \_social_auth_extra_email_config_submit()
  3. 8.5 modules/custom/social_auth_extra/social_auth_extra.module \_social_auth_extra_email_config_submit()
  4. 8.6 modules/custom/social_auth_extra/social_auth_extra.module \_social_auth_extra_email_config_submit()
  5. 8.7 modules/custom/social_auth_extra/social_auth_extra.module \_social_auth_extra_email_config_submit()
  6. 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();
}