public static function LingotekSync::getNodeIdsFromDocIds in Lingotek Translation 7.4
Same name and namespace in other branches
- 7.7 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getNodeIdsFromDocIds()
- 7.5 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getNodeIdsFromDocIds()
- 7.6 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getNodeIdsFromDocIds()
1 call to LingotekSync::getNodeIdsFromDocIds()
- LingotekSync::disassociateNodes in lib/
Drupal/ lingotek/ LingotekSync.php
File
- lib/
Drupal/ lingotek/ LingotekSync.php, line 884 - LingotekSync
Class
- LingotekSync
- A utility class for Lingotek Syncing.
Code
public static function getNodeIdsFromDocIds($lingotek_document_ids) {
$nids = array();
$query = db_select('lingotek', 'l')
->fields('l', array(
'nid',
))
->condition('lingokey', 'document_id')
->condition('lingovalue', $lingotek_document_ids, 'IN');
$result = $query
->execute()
->fetchCol();
return $result;
}