You are here

public static function LingotekSync::disassociateEntitiesUsingEntityId in Lingotek Translation 7.7

2 calls to LingotekSync::disassociateEntitiesUsingEntityId()
_lingotek_notification_handle_document_archived in ./lingotek.sync.inc
_lingotek_notification_handle_document_deleted in ./lingotek.sync.inc

File

lib/Drupal/lingotek/LingotekSync.php, line 1083
LingotekSync

Class

LingotekSync
A utility class for Lingotek Syncing.

Code

public static function disassociateEntitiesUsingEntityId($eid) {
  db_delete('lingotek_entity_metadata')
    ->condition('entity_type', 'node')
    ->condition('entity_id', $eid, '=')
    ->execute();
  lingotek_cache_clear('node');
}