function _social_auth_extra_help_text_config_form in Open Social 8.3
Same name and namespace in other branches
- 8.9 modules/custom/social_auth_extra/social_auth_extra.module \_social_auth_extra_help_text_config_form()
- 8.4 modules/custom/social_auth_extra/social_auth_extra.module \_social_auth_extra_help_text_config_form()
- 8.5 modules/custom/social_auth_extra/social_auth_extra.module \_social_auth_extra_help_text_config_form()
- 8.6 modules/custom/social_auth_extra/social_auth_extra.module \_social_auth_extra_help_text_config_form()
- 8.7 modules/custom/social_auth_extra/social_auth_extra.module \_social_auth_extra_help_text_config_form()
- 8.8 modules/custom/social_auth_extra/social_auth_extra.module \_social_auth_extra_help_text_config_form()
Adds the form fields to configure the social signup/login user help texts.
1 call to _social_auth_extra_help_text_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 378 - Contains social_auth_extra.module.
Code
function _social_auth_extra_help_text_config_form(&$form, FormStateInterface $form_state) {
$config = \Drupal::config('social_auth_extra.settings');
$fieldset = social_user_ensure_help_text_fieldset($form);
$form[$fieldset]['social_signup_help'] = [
'#type' => 'textarea',
'#title' => new TranslatableMarkup('Social Sign Up'),
'#description' => new TranslatableMarkup("Displayed in the social user sign-up card."),
"#default_value" => $config
->get('social_signup_help'),
'#weight' => 100,
];
$form[$fieldset]['social_login_help'] = [
'#type' => 'textarea',
'#title' => new TranslatableMarkup('Social Log In'),
'#description' => new TranslatableMarkup("Displayed in the social user log in card."),
"#default_value" => $config
->get('social_login_help'),
'#weight' => 110,
];
}