function social_core_form_system_site_information_settings_alter in Open Social 10.3.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_core/social_core.module \social_core_form_system_site_information_settings_alter()
- 8 modules/social_features/social_core/social_core.module \social_core_form_system_site_information_settings_alter()
- 8.2 modules/social_features/social_core/social_core.module \social_core_form_system_site_information_settings_alter()
- 8.3 modules/social_features/social_core/social_core.module \social_core_form_system_site_information_settings_alter()
- 8.4 modules/social_features/social_core/social_core.module \social_core_form_system_site_information_settings_alter()
- 8.5 modules/social_features/social_core/social_core.module \social_core_form_system_site_information_settings_alter()
- 8.6 modules/social_features/social_core/social_core.module \social_core_form_system_site_information_settings_alter()
- 8.7 modules/social_features/social_core/social_core.module \social_core_form_system_site_information_settings_alter()
- 8.8 modules/social_features/social_core/social_core.module \social_core_form_system_site_information_settings_alter()
- 10.0.x modules/social_features/social_core/social_core.module \social_core_form_system_site_information_settings_alter()
- 10.1.x modules/social_features/social_core/social_core.module \social_core_form_system_site_information_settings_alter()
- 10.2.x modules/social_features/social_core/social_core.module \social_core_form_system_site_information_settings_alter()
Implements hook_form_FORM_ID_alter().
For Site information Site details form.
File
- modules/
social_features/ social_core/ social_core.module, line 263 - The Social core module.
Code
function social_core_form_system_site_information_settings_alter(&$form, FormStateInterface $form_state, $form_id) {
// Hide site slogan field and make it disabled as well whenever the user
// is able to fill out the textfield.
if (!empty($form['site_information']['site_slogan'])) {
$form['site_information']['site_slogan']['#type'] = 'hidden';
$form['site_information']['site_slogan']['#disabled'] = TRUE;
}
}