| Versions | |
|---|---|
| 4.7 – 6 | theme_system_modules($form) |
modules/
<?php
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;
}
?>