function theme_translation_admin_nodes in Internationalization 5.2
Same name and namespace in other branches
- 5.3 translation/translation.module \theme_translation_admin_nodes()
- 5 translation/translation.module \theme_translation_admin_nodes()
Theme node administration overview.
File
- translation/
translation.module, line 690
Code
function theme_translation_admin_nodes($form) {
// Overview table:
$header = array(
t('Language'),
t('Title'),
t('Type'),
t('Author'),
t('Status'),
t('Translation status'),
t('Operations'),
);
$output .= drupal_render($form['options']);
if (isset($form['title']) && is_array($form['title'])) {
foreach (element_children($form['title']) as $key) {
$row = array();
$row[] = drupal_render($form['language'][$key]);
$row[] = drupal_render($form['title'][$key]);
$row[] = drupal_render($form['name'][$key]);
$row[] = drupal_render($form['username'][$key]);
$row[] = drupal_render($form['status'][$key]);
$row[] = drupal_render($form['translation_status'][$key]);
$row[] = drupal_render($form['operations'][$key]);
$rows[] = $row;
}
}
else {
$rows[] = array(
array(
'data' => t('No posts available.'),
'colspan' => '6',
),
);
}
$output .= theme('table', $header, $rows);
if ($form['pager']['#value']) {
$output .= drupal_render($form['pager']);
}
$output .= drupal_render($form);
return $output;
}