1 language.admin.inc language_admin_edit_form_submit($form, &$form_state)

Process the language editing form submission.

File

core/modules/language/language.admin.inc, line 325
Admin page callbacks for the Language module.

Code

function language_admin_edit_form_submit($form, &$form_state) {
  // Prepare a language object for saving
  $languages = language_list();
  $langcode = $form_state['values']['langcode'];
  $language = $languages[$langcode];
  $language->name = $form_state['values']['name'];
  $language->native = $form_state['values']['native'];
  $language->direction = $form_state['values']['direction'];
  language_save($language);
  // Display status messages for this form.
  backdrop_set_message(t('The configuration options have been saved.'));
  $form_state['redirect'] = 'admin/config/regional/language';
}