You are here

function lingotek_get_locked_config_translations in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 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()
lingotek_bulk_grid_parse_config_data in ./lingotek.config.inc

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');
}