You are here

function theme_captcha_admin_settings_captcha_points in CAPTCHA 5.3

Same name and namespace in other branches
  1. 6.2 captcha.admin.inc \theme_captcha_admin_settings_captcha_points()
  2. 6 captcha.admin.inc \theme_captcha_admin_settings_captcha_points()
  3. 7 captcha.admin.inc \theme_captcha_admin_settings_captcha_points()

Custom theme function for a table of (form_id -> CAPTCHA type) settings

1 theme call to theme_captcha_admin_settings_captcha_points()
captcha_admin_settings in ./captcha.module
Form builder function for the general CAPTCHA configuration

File

./captcha.module, line 292
This module enables basic CAPTCHA functionality: administrators can add a CAPTCHA to desired forms that users without the 'skip CAPTCHA' permission (typically anonymous visitors) have to solve.

Code

function theme_captcha_admin_settings_captcha_points($form) {
  foreach (element_children($form) as $key) {
    $row = array();
    $row[] = drupal_render($form[$key]['form_id']);
    $row[] = drupal_render($form[$key]['captcha_type']);
    $row[] = drupal_render($form[$key]['operations']);
    $rows[] = $row;
  }
  $header = array(
    'form_id',
    t('Challenge type (module)'),
    t('Operations'),
  );
  $output = theme('table', $header, $rows);
  return $output;
}