You are here

function theme_translation_node_list in Internationalization 5

Same name and namespace in other branches
  1. 5.3 translation/translation.module \theme_translation_node_list()
  2. 5.2 translation/translation.module \theme_translation_node_list()

Theme list of node translations

1 theme call to theme_translation_node_list()
translation_form_alter in translation/translation.module
Implementation of hook_form_alter().

File

translation/translation.module, line 1216

Code

function theme_translation_node_list($list) {
  $header = array(
    t('Language'),
    t('Title'),
  );

  // Use full language list with English names, then localize
  $languages = i18n_languages('name');
  foreach ($list as $lang => $node) {
    $rows[] = array(
      $languages[$lang],
      l($node->title, 'node/' . $node->nid),
    );
  }
  return theme('table', $header, $rows);
}