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