| 1 |
<?php |
<?php |
| 2 |
// $Id: captcha.module,v 1.19 2006/01/15 18:51:40 arnabdotorg Exp $ |
// $Id: captcha.module,v 1.20 2006/01/30 04:38:50 arnabdotorg Exp $ |
| 3 |
|
|
| 4 |
function captcha_help($section = "admin/help#captcha") { |
function captcha_help($section = "admin/help#captcha") { |
| 5 |
$output = ""; |
$output = ""; |
| 97 |
$form['captcha_type'] = array( |
$form['captcha_type'] = array( |
| 98 |
'#type' => 'select', |
'#type' => 'select', |
| 99 |
'#title' => t('Type of captcha to use'), |
'#title' => t('Type of captcha to use'), |
| 100 |
'#default_value' => variable_get('captcha_type','image'), |
'#default_value' => variable_get('captcha_type','math'), |
| 101 |
'#options' => _captcha_types(), |
'#options' => _captcha_types(), |
| 102 |
'#description' => t('Select what kind of challenge you want to pose to the user') |
'#description' => t('Select what kind of challenge you want to pose to the user') |
| 103 |
); |
); |
| 219 |
*/ |
*/ |
| 220 |
function _captcha_load() { |
function _captcha_load() { |
| 221 |
|
|
| 222 |
$captcha_type = variable_get("captcha_type", NULL); |
$captcha_type = variable_get("captcha_type", 'math'); |
| 223 |
$path = drupal_get_path('module', 'captcha'); |
$path = drupal_get_path('module', 'captcha'); |
| 224 |
include_once($path.'/captcha_'.$captcha_type.'.inc'); |
include_once($path.'/captcha_'.$captcha_type.'.inc'); |
| 225 |
|
|