You are here

function theme_i18n_node_select_translation in Internationalization 6

Same name and namespace in other branches
  1. 7 i18n_node/i18n_node.pages.inc \theme_i18n_node_select_translation()

Theme select translation form

1 theme call to theme_i18n_node_select_translation()
i18n_node_select_translation in ./i18n.pages.inc
Form to select existing nodes as translation

File

./i18n.pages.inc, line 262
User page callbacks for the translation module.

Code

function theme_i18n_node_select_translation($elements) {
  $output = '';
  if (isset($elements['nid'])) {
    $rows = array();
    foreach (element_children($elements['nid']) as $lang) {
      $rows[] = array(
        drupal_render($elements['language'][$lang]),
        drupal_render($elements['node'][$lang]),
      );
    }
    $output .= theme('table', array(), $rows);
    $output .= drupal_render($elements);
  }
  return $output;
}