public function LingotekConfigSet::deleteMetadataValue in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.6 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
2 calls to LingotekConfigSet::deleteMetadataValue()
- LingotekConfigSet::deleteLastError in lib/
Drupal/ lingotek/ LingotekConfigSet.php - Delete the set's last error in the config metadata table
- LingotekConfigSet::deleteUploadError in lib/
Drupal/ lingotek/ LingotekConfigSet.php - Delete the set's last upload_error in the config metadata table
File
- lib/
Drupal/ lingotek/ LingotekConfigSet.php, line 831 - 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();
}
}