public function i18n_translation_set::item_list in Internationalization 7
Get item list
File
- i18n_translation/
i18n_translation.inc, line 360 - Internationalization (i18n) module - Translation set
Class
- i18n_translation_set
- @file Internationalization (i18n) module - Translation set
Code
public function item_list() {
$language_list = language_list();
$items = array();
foreach ($this
->get_objects() as $langcode => $object) {
$title = $object
->get_title();
$path = $object
->get_path();
if ($title && $path) {
$options = isset($language_list[$langcode]) ? array(
'language' => $language_list[$langcode],
) : array();
$items[$langcode] = l($title, $path, $options);
}
elseif ($title) {
$items[$langcode] = check_plain($title);
}
}
return $items;
}