public static function LingotekSync::getConfigTargetStatus in Lingotek Translation 7.7
1 call to LingotekSync::getConfigTargetStatus()
- LingotekConfigSet::downloadTriggered in lib/
Drupal/ lingotek/ LingotekConfigSet.php - Updates the local content of $target_code with data from a Lingotek Document
File
- lib/
Drupal/ lingotek/ LingotekSync.php, line 656 - LingotekSync
Class
- LingotekSync
- A utility class for Lingotek Syncing.
Code
public static function getConfigTargetStatus($sid, $lingotek_locale) {
$query = db_select('lingotek_config_metadata', 'lcm')
->fields('lcm', array(
'value',
))
->condition('config_key', 'target_sync_status_' . $lingotek_locale)
->condition('id', $sid);
$target_status = $query
->execute()
->fetchField();
return $target_status;
}