public static function LingotekConfigSet::deleteSegmentTranslations in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.7 lib/Drupal/lingotek/LingotekConfigSet.php \LingotekConfigSet::deleteSegmentTranslations()
1 call to LingotekConfigSet::deleteSegmentTranslations()
File
- lib/
Drupal/ lingotek/ LingotekConfigSet.php, line 994 - Defines LingotekConfigSet.
Class
- LingotekConfigSet
- A class wrapper for Lingotek-specific behavior on ConfigSets.
Code
public static function deleteSegmentTranslations($lids) {
$lids = is_array($lids) ? $lids : array(
$lids,
);
db_delete('locales_target')
->condition('lid', $lids, 'IN')
->execute();
db_delete('lingotek_config_map')
->condition('lid', $lids, 'IN')
->execute();
}