function theme_system_modules in Drupal 4
Same name and namespace in other branches
- 5 modules/system/system.module \theme_system_modules()
- 6 modules/system/system.admin.inc \theme_system_modules()
File
- modules/
system.module, line 964 - Configuration system that lets administrators modify the workings of the site.
Code
function theme_system_modules($form) {
foreach (element_children($form['name']) as $key) {
$row = array();
$row[] = form_render($form['name'][$key]);
$row[] = form_render($form['description'][$key]);
$row[] = array(
'data' => form_render($form['status'][$key]),
'align' => 'center',
);
if (module_exist('throttle')) {
$row[] = array(
'data' => form_render($form['throttle'][$key]),
'align' => 'center',
);
}
$rows[] = $row;
}
$header = array(
t('Name'),
t('Description'),
t('Enabled'),
);
if (module_exist('throttle')) {
$header[] = t('Throttle');
}
$output = theme('table', $header, $rows);
$output .= form_render($form);
return $output;
}