You are here

public static function LingotekConfigSet::isLidCurrent in Lingotek Translation 7.6

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

Return bool if a specific lid is current

Parameters

int $lid: a single lid

1 call to LingotekConfigSet::isLidCurrent()
lingotek_bulk_grid_parse_config_data in ./lingotek.config.inc

File

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

Class

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

Code

public static function isLidCurrent($lid) {
  $query = db_select('lingotek_config_map', 'lcm')
    ->fields('lcm', array(
    'current',
  ))
    ->condition('lid', $lid)
    ->execute();
  $current = $query
    ->fetchField();
  return $current;
}