You are here

function lingotek_list_entities_with_language in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.4 lingotek.util.inc \lingotek_list_entities_with_language()
  2. 7.5 lingotek.util.inc \lingotek_list_entities_with_language()

File

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

Code

function lingotek_list_entities_with_language($entity_type, $bundle, $language) {
  $ids = array();
  $fields = field_info_instances($entity_type, $bundle);
  foreach ($fields as $name => $field_info) {
    $ids = $ids + lingotek_list_entities_with_field_in_language_by_bundle($entity_type, $bundle, $name, $language);
  }
  return $ids;
}