public static function LingotekSync::getNodeIdSubsetByTargetStatusReady in Lingotek Translation 7.4
1 call to LingotekSync::getNodeIdSubsetByTargetStatusReady()
- lingotek_grid_action_submit in ./
lingotek.bulk_grid.inc - Submit function for The Grid's actions The action corresponds to the key of the option selected Often redirects to batch operations or to other pages entirely
File
- lib/
Drupal/ lingotek/ LingotekSync.php, line 926 - LingotekSync
Class
- LingotekSync
- A utility class for Lingotek Syncing.
Code
public static function getNodeIdSubsetByTargetStatusReady($nids, $lingotek_locale) {
$query = db_select('lingotek', 'l')
->fields('l', array(
'nid',
))
->condition('nid', $nids, 'IN')
->condition('lingokey', 'target_sync_status_' . $lingotek_locale)
->condition('lingovalue', LingotekSync::STATUS_READY);
$result = $query
->execute()
->fetchCol();
return $result;
}