You are here

public static function LingotekSync::getAllTargetStatusNotCurrent in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 7.7 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getAllTargetStatusNotCurrent()
  2. 7.3 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getAllTargetStatusNotCurrent()
  3. 7.4 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getAllTargetStatusNotCurrent()
  4. 7.6 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getAllTargetStatusNotCurrent()

File

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

Class

LingotekSync
A utility class for Lingotek Syncing.

Code

public static function getAllTargetStatusNotCurrent($nid) {
  $query = db_select('{lingotek_entity_metadata}', 'l')
    ->fields('l', array(
    'entity_key',
    'value',
  ))
    ->condition('entity_type', 'node')
    ->condition('entity_key', 'target_sync_status_%', 'LIKE')
    ->condition('value', 'CURRENT', '!=')
    ->condition('entity_id', $nid);
  $result = $query
    ->execute()
    ->fetchAll();
  return $result;
}