function i18n_translation_format_items in Internationalization 7
Format translation set info as table
1 call to i18n_translation_format_items()
- i18n_translation_set_element in i18n_translation/
i18n_translation.module - Build translation fieldset for object
File
- i18n_translation/
i18n_translation.module, line 206 - Internationalization (i18n) module - Entity translations
Code
function i18n_translation_format_items($translations) {
foreach ($translations as $langcode => $item) {
$rows[] = array(
i18n_language_name($langcode),
$item,
);
}
return !empty($rows) ? theme('table', array(
'rows' => $rows,
)) : '';
}