function locale_translation_status_delete_projects

Delete project entries from the status cache.

Parameters

array $projects: Project name(s) to be deleted from the cache.

1 call to locale_translation_status_delete_projects()
locale_system_remove in drupal/core/modules/locale/locale.module
Delete translation history of modules and themes.

File

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

Code

function locale_translation_status_delete_projects($projects) {
  $status = Drupal::state()
    ->get('locale.translation_status');
  foreach ($status as $project => $languages) {
    if (in_array($project, $projects)) {
      unset($status[$project]);
    }
  }
  Drupal::state()
    ->set('locale.translation_status', $status);
}