You are here

function theme_recaptcha_v3_admin_settings_actions_overview in reCAPTCHA v3 7

1 theme call to theme_recaptcha_v3_admin_settings_actions_overview()
recaptcha_v3_admin_settings in ./recaptcha_v3.admin.inc
Form callback; administrative settings for Google No CAPTCHA.

File

./recaptcha_v3.admin.inc, line 150
Provides the Google No CAPTCHA administration settings.

Code

function theme_recaptcha_v3_admin_settings_actions_overview($variables) {
  $table = $variables['form'];
  $header = array(
    t('Machine name'),
    t('Action'),
    t('Score'),
    t('Challenge type'),
    t('Delete'),
  );
  $rows = array();

  // Existing CAPTCHA points.
  foreach (element_children($table) as $key) {
    $row = array();
    $row[] = drupal_render($table[$key]['id']);
    $row[] = drupal_render($table[$key]['action']);
    $row[] = drupal_render($table[$key]['score']);
    $row[] = drupal_render($table[$key]['challenge']);
    $row[] = l(t('delete'), "admin/config/people/captcha/recaptcha-v3/{$key}/delete");
    $rows[] = $row;
  }
  return theme('table', array(
    'header' => $header,
    'rows' => $rows,
  ));
}