function _social_auth_extra_email_config_form in Open Social 8.4
Same name and namespace in other branches
- 8.9 modules/custom/social_auth_extra/social_auth_extra.module \_social_auth_extra_email_config_form()
- 8.3 modules/custom/social_auth_extra/social_auth_extra.module \_social_auth_extra_email_config_form()
- 8.5 modules/custom/social_auth_extra/social_auth_extra.module \_social_auth_extra_email_config_form()
- 8.6 modules/custom/social_auth_extra/social_auth_extra.module \_social_auth_extra_email_config_form()
- 8.7 modules/custom/social_auth_extra/social_auth_extra.module \_social_auth_extra_email_config_form()
- 8.8 modules/custom/social_auth_extra/social_auth_extra.module \_social_auth_extra_email_config_form()
Adds form fields for the social login notification emails.
1 call to _social_auth_extra_email_config_form()
- social_auth_extra_form_user_admin_settings_alter in modules/
custom/ social_auth_extra/ social_auth_extra.module - Implements hook_form_FORM_ID_alter() for user_admin_settings().
File
- modules/
custom/ social_auth_extra/ social_auth_extra.module, line 357 - Contains social_auth_extra.module.
Code
function _social_auth_extra_email_config_form(&$form, FormStateInterface $form_state) {
$config = \Drupal::config('social_auth_extra.mail');
$form['email_social_login'] = [
'#type' => 'details',
'#title' => t('Welcome (registration with social network)'),
'#description' => t('This message will be sent to users when users will be registered with a social network account.'),
'#group' => 'email',
'#tree' => TRUE,
'#weight' => -10,
];
$form['email_social_login']['subject'] = [
'#type' => 'textfield',
'#title' => t('Subject'),
'#maxlength' => 180,
'#default_value' => $config
->get('email_social_login.subject'),
];
$form['email_social_login']['body'] = [
'#type' => 'textarea',
'#title' => t('Body'),
'#rows' => 8,
'#default_value' => $config
->get('email_social_login.body'),
];
}