You are here

function riddler_form in Captcha Riddler 5

1 call to riddler_form()
riddler_captcha in ./riddler.module

File

./riddler.module, line 111

Code

function riddler_form() {
  $form['preprocess'] = TRUE;
  $form['solution'] = (string) strtolower(variable_get("riddler_answer", "yes"));
  $form['form']['captcha_response'] = array(
    '#type' => 'textfield',
    '#title' => variable_get("riddler_question", "Do you hate spam? (yes or no)"),
    '#required' => TRUE,
    '#description' => t('Security question, designed to stop automated spam bots'),
    '#weight' => variable_get('riddler_weight', 0),
  );
  return $form;
}