You are here

function theme_i18n_node_select_translation in Internationalization 7

Same name and namespace in other branches
  1. 6 i18n.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_node/i18n_node.pages.inc
Form to select existing nodes as translation

File

i18n_node/i18n_node.pages.inc, line 343
User page callbacks for the translation module.

Code

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