function theme_locale_admin_manage_screen in Drupal 4
Same name and namespace in other branches
- 5 includes/locale.inc \theme_locale_admin_manage_screen()
Theme the locale admin manager form.
File
- includes/
locale.inc, line 84 - Admin-related functions for locale.module.
Code
function theme_locale_admin_manage_screen($form) {
foreach ($form['name'] as $key => $element) {
// Do not take form control structures.
if (is_array($element) && element_child($key)) {
$rows[] = array(
check_plain($key),
form_render($form['name'][$key]),
form_render($form['enabled'][$key]),
form_render($form['site_default'][$key]),
$key != 'en' ? form_render($form['translation'][$key]) : message_na(),
$key != 'en' ? l(t('delete'), 'admin/locale/language/delete/' . $key) : '',
);
}
}
$header = array(
array(
'data' => t('Code'),
),
array(
'data' => t('English name'),
),
array(
'data' => t('Enabled'),
),
array(
'data' => t('Default'),
),
array(
'data' => t('Translated'),
),
array(
'data' => t('Operations'),
),
);
$output = theme('table', $header, $rows);
$output .= form_render($form);
return $output;
}