locale_form_language_admin_add_form_alter

locale_form_language_admin_add_form_alter(&$form, FormStateInterface $form_state)

Implements hook_form_FORM_ID_alter() for language_admin_add_form().

File

core/modules/locale/locale.module, line 675
Enables the translation of the user interface to languages other than English.

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';
}
doc_Drupal
2016-10-29 09:24:14
Comments
Leave a Comment

Please login to continue.