You are here

public function i18n_translation_set::load_translations in Internationalization 7

Load all translations as objects indexed by language

1 call to i18n_translation_set::load_translations()
i18n_translation_set::get_objects in i18n_translation/i18n_translation.inc
Get translations as i18n objects, indexed by language
2 methods override i18n_translation_set::load_translations()
i18n_menu_link_translation_set::load_translations in i18n_menu/i18n_menu.inc
Load all path translations
i18n_taxonomy_translation_set::load_translations in i18n_taxonomy/i18n_taxonomy.inc
Load all term translations

File

i18n_translation/i18n_translation.inc, line 454
Internationalization (i18n) module - Translation set

Class

i18n_translation_set
@file Internationalization (i18n) module - Translation set

Code

public function load_translations() {
  if (($table = $this
    ->get_table()) && ($field = $this
    ->get_field())) {
    return db_select($table, 't')
      ->fields('t')
      ->condition('t.' . $field, $this->tsid)
      ->execute()
      ->fetchAllAssoc('language');
  }
  else {
    return array();
  }
}