public static function LingotekSync::getNodeIdsByStatusAndTarget in Lingotek Translation 7.4
1 call to LingotekSync::getNodeIdsByStatusAndTarget()
File
- lib/
Drupal/ lingotek/ LingotekSync.php, line 672 - LingotekSync
Class
- LingotekSync
- A utility class for Lingotek Syncing.
Code
public static function getNodeIdsByStatusAndTarget($status, $target_language = '%') {
$query = db_select('lingotek', 'l')
->distinct()
->fields('l', array(
'nid',
))
->condition('lingokey', 'target_sync_status_' . $target_language, 'LIKE')
->condition('lingovalue', $status);
$result = $query
->execute()
->fetchCol();
return $result;
}