You are here

function l10n_update_l10n_update_languages_alter in Localization update 7.2

Implements hook_l10n_update_languages_alter().

Removes disabled languages from the language list.

File

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

Code

function l10n_update_l10n_update_languages_alter(array &$langcodes) {
  $disabled = array_filter(variable_get('l10n_update_disabled_languages', array()));
  $langcodes = array_diff_key($langcodes, $disabled);
}