You are here

public static function LingotekConfigSet::markLidsNotCurrent in Lingotek Translation 7.7

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

Mark all lids passed as current or not current, in the lingotek_config_map table

Parameters

array $lids: the list of lids that are current

3 calls to LingotekConfigSet::markLidsNotCurrent()
drush_lingotek_push in ./lingotek.drush.inc
Callback function for drush command batch upload translatable content
lingotek_add_target_language in ./lingotek.util.inc
Adds the target language as being enabled.
lingotek_config_upload_selected in ./lingotek.config.inc

File

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

Class

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

Code

public static function markLidsNotCurrent($lids) {
  $query = db_update('lingotek_config_map')
    ->fields(array(
    'current' => 0,
  ));
  if ($lids != 'all') {
    $query
      ->condition('lid', $lids, 'IN');
  }
  $query
    ->execute();
}