You are here

function lingotek_list_nodes_translated_in_language in Lingotek Translation 7.4

Same name and namespace in other branches
  1. 7.7 lingotek.util.inc \lingotek_list_nodes_translated_in_language()
  2. 7.5 lingotek.util.inc \lingotek_list_nodes_translated_in_language()
  3. 7.6 lingotek.util.inc \lingotek_list_nodes_translated_in_language()
1 call to lingotek_list_nodes_translated_in_language()
lingotek_batch_identify_content in ./lingotek.batch.inc
Batch Create: Lingotek Identify Content - create informative lingonode data (in lingotek table) for pre-existing content

File

./lingotek.util.inc, line 1360
Utility functions.

Code

function lingotek_list_nodes_translated_in_language($bundle, $language) {
  $query = db_select('node')
    ->fields('node', array(
    'tnid',
  ))
    ->condition('node.type', $bundle)
    ->condition('node.tnid', 0, '<>')
    ->condition('language', $language)
    ->execute();
  $nodes = $query
    ->fetchCol();
  return $nodes;
}