public static function LingotekSync::getAllTargetStatusNotCurrent in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.3 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getAllTargetStatusNotCurrent()
- 7.4 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getAllTargetStatusNotCurrent()
- 7.5 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getAllTargetStatusNotCurrent()
- 7.6 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getAllTargetStatusNotCurrent()
File
- lib/
Drupal/ lingotek/ LingotekSync.php, line 102 - 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;
}