function riddler_settings in Captcha Riddler 5
Same name and namespace in other branches
- 6 riddler.module \riddler_settings()
- 7 riddler.module \riddler_settings()
1 string reference to 'riddler_settings'
File
- ./
riddler.module, line 53
Code
function riddler_settings() {
$form['riddler_question'] = array(
'#type' => 'textfield',
'#title' => t('Question'),
'#description' => t('A question that you require anonymous users to answer'),
'#default_value' => variable_get("riddler_question", "Do you hate spam? (yes or no)"),
'#required' => TRUE,
);
$form['riddler_answer'] = array(
'#type' => 'textfield',
'#title' => t('Answer'),
'#default_value' => variable_get("riddler_answer", "yes"),
'#description' => t('Answer to the above question. Answers are not case sensitive'),
'#required' => TRUE,
);
$form['riddler_weight'] = array(
'#type' => 'select',
'#title' => t('Weight'),
'#default_value' => variable_get("riddler_weight", 0),
'#options' => drupal_map_assoc(range(-10, 10)),
'#description' => t('Weight of the Riddler form element'),
'#required' => TRUE,
);
return system_settings_form($form);
}