You are here

public function LingotekConfigSet::deleteMetadataValue in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lib/Drupal/lingotek/LingotekConfigSet.php \LingotekConfigSet::deleteMetadataValue()

Deletes a Lingotek metadata value for this item

Parameters

string $key: The key for a name/value pair

File

lib/Drupal/lingotek/LingotekConfigSet.php, line 778
Defines LingotekConfigSet.

Class

LingotekConfigSet
A class wrapper for Lingotek-specific behavior on ConfigSets.

Code

public function deleteMetadataValue($key) {
  $metadata = $this
    ->metadata();
  if (isset($metadata[$key])) {
    db_delete('lingotek_config_metadata')
      ->condition('id', $this->sid)
      ->condition('config_key', $key, 'LIKE')
      ->execute();
  }
}