/[drupal]/contributions/modules/captcha/captcha.module
ViewVC logotype

Diff of /contributions/modules/captcha/captcha.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.20, Mon Jan 30 04:38:50 2006 UTC revision 1.21, Sun Feb 12 08:54:56 2006 UTC
# Line 1  Line 1 
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 = "";
# Line 97  function captcha_settings() { Line 97  function captcha_settings() {
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                            );                            );
# Line 219  function _captcha_call($func) { Line 219  function _captcha_call($func) {
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    

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.2