function locale_translation_file_history_delete

Deletes the history of downloaded translations.

Parameters

array $projects: Project name(s) to be deleted from the file history. If both project(s) and language code(s) are specified the conditions will be ANDed.

array $langcode: Language code(s) to be deleted from the file history.

2 calls to locale_translation_file_history_delete()
locale_system_remove in drupal/core/modules/locale/locale.module
Delete translation history of modules and themes.
locale_translate_delete_translation_files in drupal/core/modules/locale/locale.bulk.inc
Deletes interface translation files and translation history records.

File

drupal/core/modules/locale/locale.module, line 868
Enables the translation of the user interface to languages other than English.

Code

function locale_translation_file_history_delete($projects = array(), $langcodes = array()) {
  $query = db_delete('locale_file');
  if (!empty($projects)) {
    $query
      ->condition('project', $projects);
  }
  if (!empty($langcodes)) {
    $query
      ->condition('langcode', $langcodes);
  }
  $query
    ->execute();
}