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