You are here

function l10n_update_languages_changed_submit in Localization update 6

Same name and namespace in other branches
  1. 7.2 l10n_update.module \l10n_update_languages_changed_submit()
  2. 7 l10n_update.module \l10n_update_languages_changed_submit()

Aditional submit handler for language forms

We need to refresh status when a new language is enabled / disabled

1 string reference to 'l10n_update_languages_changed_submit'
l10n_update_form_alter in ./l10n_update.module
Implementation of hook_form_alter().

File

./l10n_update.module, line 166
Download translations from remote localization server.

Code

function l10n_update_languages_changed_submit($form, $form_state) {
  module_load_include('check.inc', 'l10n_update');
  $langcode = $form_state['values']['langcode'];
  l10n_update_language_refresh(array(
    $langcode,
  ));
}