You are here

public static function LingotekSync::getNonWorkbenchModerationNodeIds in Lingotek Translation 7.3

Same name and namespace in other branches
  1. 7.4 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getNonWorkbenchModerationNodeIds()
1 call to LingotekSync::getNonWorkbenchModerationNodeIds()
LingotekSync::getUploadableReport in lib/Drupal/lingotek/LingotekSync.php

File

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

Class

LingotekSync
A utility class for Lingotek Syncing.

Code

public static function getNonWorkbenchModerationNodeIds($edited_nodes) {
  $sub_query = db_select('workbench_moderation_node_history', 'wb')
    ->fields('wb', array(
    'nid',
  ));
  $query = db_select('node_revision', 'nr')
    ->distinct(TRUE)
    ->fields('nr', array(
    'nid',
  ))
    ->condition('nid', $sub_query, 'NOT IN')
    ->condition('nid', $edited_nodes, 'IN');
  $no_wb_mod = $query
    ->execute()
    ->fetchCol(0);
  return $no_wb_mod;
}