You are here

function l10n_update_status_delete_languages in Localization update 7.2

Delete language entries from the status cache.

Parameters

array $langcodes: Language code(s) to be deleted from the cache.

File

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

Code

function l10n_update_status_delete_languages(array $langcodes) {
  if ($status = l10n_update_get_status()) {
    foreach ($status as $project => $languages) {
      foreach ($languages as $langcode => $source) {
        if (in_array($langcode, $langcodes)) {
          unset($status[$project][$langcode]);
        }
      }
    }
    cache_set('l10n_update_status', $status);
  }
}