public static function LingotekConfigSet::getDocId in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.7 lib/Drupal/lingotek/LingotekConfigSet.php \LingotekConfigSet::getDocId()
1 call to LingotekConfigSet::getDocId()
File
- lib/
Drupal/ lingotek/ LingotekConfigSet.php, line 291 - Defines LingotekConfigSet.
Class
- LingotekConfigSet
- A class wrapper for Lingotek-specific behavior on ConfigSets.
Code
public static function getDocId($set_id) {
$doc_id = db_select('lingotek_config_metadata', 'l')
->fields('l', array(
'value',
))
->condition('id', $set_id)
->condition('config_key', 'document_id')
->execute()
->fetchField();
return $doc_id;
}