Contributions API

Calling all Drupal developers!

Help us get this on the first page of Digg. DIGG NOW!

Modules in 5

captcha.module

Version

1.42.2.40 (checked in on 2007/12/03 at 01:16:42 by robloach)

Description

This module enables basic CAPTCHA functionality: adminstrators can add a CAPTCHA to desired forms that users without the 'skip CAPTCHA' permission (typically anonymous visitors) have to solve.

Constants

Namesort iconDescription
CAPTCHA_PERSISTENCE_SHOW_ALWAYS
CAPTCHA_PERSISTENCE_SKIP_ONCE_SUCCESSFUL
CAPTCHA_PERSISTENCE_SKIP_ONCE_SUCCESSFUL_PER_FORM
CAPTCHA_UNSOLVED_CHALLENGES_MAX

Functions

Namesort iconDescription
captcha_adminGeneral CAPTCHA settings handler. Main entry point for CAPTCHA management.
captcha_admin_settingsForm builder function for the general CAPTCHA configuration
captcha_admin_settings_submitSubmission function for captcha_admin_settings form
captcha_captchaDefault implementation of hook_captcha
captcha_captcha_point_settings_formform generating function for CAPTCHA point settings
captcha_captcha_point_settings_form_submitsubmit function for captcha_captcha_point_settings_form
captcha_examplesFuntion for generating a page with CAPTCHA examples If the arguments $module and $challenge are not set, generate a list with examples of the available CAPTCHA types. If $module and $challenge are set, generate 10 examples of the concerning CAPTCHA.
captcha_form_alterImplementation of hook_form_alter().
captcha_helpImplementation of hook_help().
captcha_menuImplementation of hook_menu().
captcha_permImplementation of hook_perm().
captcha_pre_renderImplementation of form #pre_render.
captcha_pre_render_place_captchaPre_render function to place the CAPTCHA form element just above the last submit button
captcha_requirementsImplementation of hook_requirements().
captcha_validateImplementation of form #validate.
theme_captcha_admin_settings_captcha_pointsCustom theme function for a table of (form_id -> CAPTCHA type) settings
_captcha_available_challenge_typesReturn an array with the available CAPTCHA types, for use as options array for a select form elements. The array is an associative array mapping "$module/$type" to "$module/$type" with $module the module name implementing the...
_captcha_get_descriptionGet the description which appears above the CAPTCHA in forms. If the locale module is enabled, an optional language code can be given
_captcha_persistence_skipHelper function for checking if the CAPTCHA for the given form_id should be skipped because of CAPTCHA persistence.