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