public static function LingotekSync::disassociateEntities in Lingotek Translation 7.5
Same name and namespace in other branches
- 7.7 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::disassociateEntities()
- 7.6 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::disassociateEntities()
File
- lib/
Drupal/ lingotek/ LingotekSync.php, line 758 - LingotekSync
Class
- LingotekSync
- A utility class for Lingotek Syncing.
Code
public static function disassociateEntities($document_ids = array()) {
$eids = self::getNodeIdsFromDocIds($document_ids);
db_delete('{lingotek_entity_metadata}')
->condition('entity_type', 'node')
->condition('entity_id', $eids, 'IN')
->execute();
}