You are here

public static function LingotekConfigSet::deleteSegmentTranslations in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lib/Drupal/lingotek/LingotekConfigSet.php \LingotekConfigSet::deleteSegmentTranslations()
1 call to LingotekConfigSet::deleteSegmentTranslations()
lingotek_config_delete_form_submit in ./lingotek.bulk_grid.inc

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();
}