function language_admin_edit_form_submit

Process the language editing form submission.

1 string reference to 'language_admin_edit_form_submit'
language_admin_edit_form in drupal/core/modules/language/language.admin.inc
Editing screen for a particular language.

File

drupal/core/modules/language/language.admin.inc, line 349
Administration functions for 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->direction = $form_state['values']['direction'];
  language_save($language);
  $form_state['redirect'] = 'admin/config/regional/language';
}