Révision 66b5cbf6
Ajouté par Assos Assos il y a presque 10 ans
drupal7/sites/all/modules/captcha/captcha.admin.inc | ||
---|---|---|
106 | 106 |
'#options' => $captcha_type_options, |
107 | 107 |
); |
108 | 108 |
|
109 |
// Checkbox to add default CAPTCHA to all non listed forms as well. |
|
110 |
$form['captcha_form_protection']['captcha_default_challenge_on_nonlisted_forms'] = array( |
|
111 |
'#type' => 'checkbox', |
|
112 |
'#title' => t('Default challenge on non-listed forms.'), |
|
113 |
'#default_value' => variable_get('captcha_default_challenge_on_nonlisted_forms', FALSE), |
|
114 |
'#description' => t('Normally, no challenge is added to forms that are not listed above. Enabling this option will add the default challenge instead.'), |
|
115 |
); |
|
116 |
|
|
109 | 117 |
// Field for the CAPTCHA administration mode. |
110 | 118 |
$form['captcha_form_protection']['captcha_administration_mode'] = array( |
111 | 119 |
'#type' => 'checkbox', |
... | ... | |
272 | 280 |
variable_set('captcha_allow_on_admin_pages', $form_state['values']['captcha_allow_on_admin_pages']); |
273 | 281 |
|
274 | 282 |
variable_set('captcha_default_challenge', $form_state['values']['captcha_default_challenge']); |
283 |
variable_set('captcha_default_challenge_on_nonlisted_forms', $form_state['values']['captcha_default_challenge_on_nonlisted_forms']); |
|
275 | 284 |
|
276 | 285 |
// Process CAPTCHA points |
277 | 286 |
if (isset($form_state['values']['captcha_form_id_overview']['captcha_captcha_points'])) { |
Formats disponibles : Unified diff
Weekly update of contrib modules