You are here

function l10n_update_languages_delete_submit in Localization update 7.2

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

Additional submit handler for language deletion form.

When a language is deleted, the file history of this language is cleared.

1 string reference to 'l10n_update_languages_delete_submit'
l10n_update_form_alter in ./l10n_update.module
Implements hook_form_alter().

File

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

Code

function l10n_update_languages_delete_submit($form, $form_state) {
  $langcode = $form_state['values']['langcode'];
  l10n_update_file_history_delete(array(), $langcode);
}