function lingotek_get_locked_config_translations in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.7 lingotek.config.inc \lingotek_get_locked_config_translations()
Gets record of all Non-Lingotek translations (translation_agent_id != 3)
1 call to lingotek_get_locked_config_translations()
File
- ./
lingotek.config.inc, line 222 - Config grid form elements
Code
function lingotek_get_locked_config_translations($lids = NULL) {
$query = db_select('locales_target', 'lt')
->fields('lt', array(
'lid',
));
$query
->addExpression('GROUP_CONCAT(lt.language)', 'language_codes');
$query
->condition('lt.translation_agent_id', LingotekConfigSet::getLingotekTranslationAgentId(), '!=');
if (is_array($lids) && !empty($lids)) {
$query
->condition('lt.lid', $lids, 'IN');
}
$query
->groupBy('lid');
return $query
->execute()
->fetchAllAssoc('lid');
}