function locale_form_language_admin_add_form_alter
Same name in other branches
- 8.9.x core/modules/locale/locale.module \locale_form_language_admin_add_form_alter()
- 10 core/modules/locale/locale.module \locale_form_language_admin_add_form_alter()
- 11.x core/modules/locale/locale.module \locale_form_language_admin_add_form_alter()
Implements hook_form_FORM_ID_alter() for language_admin_add_form().
File
-
core/
modules/ locale/ locale.module, line 634
Code
function locale_form_language_admin_add_form_alter(&$form, FormStateInterface $form_state) {
$form['predefined_submit']['#submit'][] = 'locale_form_language_admin_add_form_alter_submit';
$form['custom_language']['submit']['#submit'][] = 'locale_form_language_admin_add_form_alter_submit';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.