You are here

function i18n_translation_set_index in Internationalization 7

Index objects in translation set by language

1 call to i18n_translation_set_index()
i18n_taxonomy_translation_set::load_translations in i18n_taxonomy/i18n_taxonomy.inc
Load all term translations

File

i18n_translation/i18n_translation.module, line 289
Internationalization (i18n) module - Entity translations

Code

function i18n_translation_set_index($translations) {
  $list = array();
  foreach ($translations as $object) {
    if ($lang = i18n_object_langcode($object)) {
      $list[$lang] = $object;
    }
  }
  return $list;
}