function theme_spamicide_admin_settings_spamicide in Spamicide 6
Same name and namespace in other branches
- 5 spamicide.module \theme_spamicide_admin_settings_spamicide()
Custom theme function
Parameters
$form:
Return value
unknown_type
1 theme call to theme_spamicide_admin_settings_spamicide()
- spamicide_admin_form in ./
spamicide.module - Form for spamicide administration
File
- ./
spamicide.module, line 167 - This module provides yet another tool to eliminate spam.
Code
function theme_spamicide_admin_settings_spamicide($form) {
foreach (element_children($form) as $key) {
$row = array();
$row[] = drupal_render($form[$key]['enabled']);
$row[] = drupal_render($form[$key]['form_id']);
$row[] = drupal_render($form[$key]['form_field']);
$row[] = drupal_render($form[$key]['operations']);
$rows[] = $row;
}
$header = array(
'Enabled',
'Form_id',
'Form field name',
t('Delete'),
);
$output = theme('table', $header, $rows);
return $output;
}