You are here

function lingotek_keystore_delete in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.5 lingotek.util.inc \lingotek_keystore_delete()
  2. 7.6 lingotek.util.inc \lingotek_keystore_delete()
8 calls to lingotek_keystore_delete()
flag_entity_as_empty in ./lingotek.util.inc
Checks if document is empty and sets or removes appropriate key in database.
LingotekSync::deleteLastSyncError in lib/Drupal/lingotek/LingotekSync.php
LingotekSync::deleteTargetStatus in lib/Drupal/lingotek/LingotekSync.php
lingotek_get_language_override_form_submit in ./lingotek.module
lingotek_update_7502 in ./lingotek.install
Migrates comment profile settings

... See full list

File

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

Code

function lingotek_keystore_delete($entity_type, $id, $key) {
  $query = db_delete('lingotek_entity_metadata');
  $query
    ->condition('entity_type', $entity_type);
  $query
    ->condition('entity_id', $id);
  $query
    ->condition('entity_key', $key);
  $result = $query
    ->execute();
  lingotek_cache_clear($entity_type, $id);
  return $result;
}