You are here

function lingotek_keystore_delete_all_multiple in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.5 lingotek.util.inc \lingotek_keystore_delete_all_multiple()
  2. 7.6 lingotek.util.inc \lingotek_keystore_delete_all_multiple()

File

./lingotek.util.inc, line 196
Utility functions.

Code

function lingotek_keystore_delete_all_multiple($entity_type, $ids) {
  db_delete('lingotek_entity_metadata')
    ->condition('entity_type', $entity_type)
    ->condition('entity_id', $ids, 'IN')
    ->execute();
  foreach ($ids as $eid) {
    lingotek_cache_clear($entity_type, $eid);
  }
}