You are here

function social_core_form_system_site_information_settings_alter in Open Social 8.8

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_core/social_core.module \social_core_form_system_site_information_settings_alter()
  2. 8 modules/social_features/social_core/social_core.module \social_core_form_system_site_information_settings_alter()
  3. 8.2 modules/social_features/social_core/social_core.module \social_core_form_system_site_information_settings_alter()
  4. 8.3 modules/social_features/social_core/social_core.module \social_core_form_system_site_information_settings_alter()
  5. 8.4 modules/social_features/social_core/social_core.module \social_core_form_system_site_information_settings_alter()
  6. 8.5 modules/social_features/social_core/social_core.module \social_core_form_system_site_information_settings_alter()
  7. 8.6 modules/social_features/social_core/social_core.module \social_core_form_system_site_information_settings_alter()
  8. 8.7 modules/social_features/social_core/social_core.module \social_core_form_system_site_information_settings_alter()
  9. 10.3.x modules/social_features/social_core/social_core.module \social_core_form_system_site_information_settings_alter()
  10. 10.0.x modules/social_features/social_core/social_core.module \social_core_form_system_site_information_settings_alter()
  11. 10.1.x modules/social_features/social_core/social_core.module \social_core_form_system_site_information_settings_alter()
  12. 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 128
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;
  }
}