You are here

public static function LingotekSync::deleteTargetEntriesForAllEntities in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.5 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::deleteTargetEntriesForAllEntities()
  2. 7.6 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::deleteTargetEntriesForAllEntities()
1 call to LingotekSync::deleteTargetEntriesForAllEntities()
LingotekSync::deleteTargetEntriesForAllDocs in lib/Drupal/lingotek/LingotekSync.php

File

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

Class

LingotekSync
A utility class for Lingotek Syncing.

Code

public static function deleteTargetEntriesForAllEntities($lingotek_locale) {
  $keys = array(
    'target_sync_status_' . $lingotek_locale,
  );
  db_delete('lingotek_entity_metadata')
    ->condition('entity_key', $keys, 'IN')
    ->execute();
}