function theme_log_cleanup_settings in Util 6.3
Same name and namespace in other branches
- 7 contribs/log_cleanup/log_cleanup.module \theme_log_cleanup_settings()
Theme the module settings form.
File
- contribs/
log_cleanup/ log_cleanup.module, line 150 - Clean up watchdog messages.
Code
function theme_log_cleanup_settings($form) {
$output = '';
$rows = array();
$header = array(
t('Message Type'),
t('Interval'),
);
$settings = $form['message_types']['#value'];
// Spin through the intervals elements.
foreach (element_children($form['intervals']) as $key) {
// Build the table, using the key from the form element;
$rows[] = array(
check_plain($key),
drupal_render($form['intervals'][$key]),
);
}
$output .= theme('table', $header, $rows);
$output .= drupal_render($form);
return $output;
}