public static function LingotekConfigSet::isLidCurrent in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.6 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()
File
- lib/
Drupal/ lingotek/ LingotekConfigSet.php, line 968 - 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;
}