You are here

public static function LingotekConfigSet::disassociateSegments in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.6 lib/Drupal/lingotek/LingotekConfigSet.php \LingotekConfigSet::disassociateSegments()
2 calls to LingotekConfigSet::disassociateSegments()
LingotekConfigSet::getAllSegments in lib/Drupal/lingotek/LingotekConfigSet.php
Return all segments from the database that belong to a given set ID
lingotek_config_disassociate_form_submit in ./lingotek.bulk_grid.inc

File

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

Class

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

Code

public static function disassociateSegments($lids) {
  $lids = is_array($lids) ? $lids : array(
    $lids,
  );
  db_delete('lingotek_config_map')
    ->condition('lid', $lids, 'IN')
    ->execute();
}