public static function LingotekConfigSet::getLidBySource in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.7 lib/Drupal/lingotek/LingotekConfigSet.php \LingotekConfigSet::getLidBySource()
1 call to LingotekConfigSet::getLidBySource()
File
- lib/
Drupal/ lingotek/ LingotekConfigSet.php, line 1175 - Defines LingotekConfigSet.
Class
- LingotekConfigSet
- A class wrapper for Lingotek-specific behavior on ConfigSets.
Code
public static function getLidBySource($source_string) {
return db_select('locales_source', 's')
->fields('s', array(
'lid',
))
->condition('s.source', $source_string)
->execute()
->fetchField();
}