You are here

public static function LingotekSync::deleteTargetEntriesForAllNodes in Lingotek Translation 7.4

Same name and namespace in other branches
  1. 7.3 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::deleteTargetEntriesForAllNodes()
1 call to LingotekSync::deleteTargetEntriesForAllNodes()
LingotekSync::deleteTargetEntriesForAllDocs in lib/Drupal/lingotek/LingotekSync.php

File

lib/Drupal/lingotek/LingotekSync.php, line 202
LingotekSync

Class

LingotekSync
A utility class for Lingotek Syncing.

Code

public static function deleteTargetEntriesForAllNodes($lingotek_locale) {
  $keys = array(
    'target_sync_status_' . $lingotek_locale,
    'target_sync_last_progress_updated_' . $lingotek_locale,
    'target_sync_progress_' . $lingotek_locale,
    'target_last_downloaded_' . $lingotek_locale,
  );
  db_delete('lingotek')
    ->condition('lingokey', $keys, 'IN')
    ->execute();
}