You are here

function theme_spamicide_admin_settings in Spamicide 7

Custom theme function

Parameters

$form:

Return value

unknown_type

1 theme call to theme_spamicide_admin_settings()
spamicide_admin_form in ./spamicide.module
Form for spamicide administration

File

./spamicide.module, line 180
This module provides yet another tool to eliminate spam.

Code

function theme_spamicide_admin_settings($variables) {
  $form = $variables['form'];
  $header = array(
    t('Enabled'),
    t('Form_id'),
    t('Form field name'),
    t('Delete'),
  );
  $rows = array();
  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;
  }
  $output = theme('table', array(
    'header' => $header,
    'rows' => $rows,
  ));
  return $output;
}