--- recaptcha/recaptcha.module 2007-07-31 17:46:06.000000000 -0700 +++ contributions/modules/recaptcha/recaptcha.module 2007-08-09 16:25:30.000000000 -0700 @@ -92,6 +92,13 @@ function recaptcha_settings() { '#maxlength' => 40, '#description' => t('The private key given to you when you registered at reCAPTCHA.net.', array('%url' => check_plain(url(recaptcha_get_signup_url($_SERVER['SERVER_NAME'], variable_get('site_name', '')))))), ); + $form['recaptcha_form_weight'] = array( + '#type' => 'weight', + '#title' => t('reCAPTCHA weight'), + '#default_value' => variable_get('recaptcha_form_weight', 1), + '#delta' => 15, + '#description' => t('Weight of the reCAPTCHA challenge within a form that uses it.'), + ); $form['recaptcha_server_settings'] = array( '#type' => 'fieldset', '#title' => t('Server Settings'), @@ -142,10 +149,8 @@ function recaptcha_captchachallenge(&$fo $form['captcha_response'] = array ( '#type' => 'item', '#title' => t('Are you a person?'), - '#description' => recaptcha_get_html(variable_get('recaptcha_public_key', ''), - NULL, - variable_get('recaptcha_secure_connection', FALSE)), - '#weight' => -1, + '#description' => recaptcha_get_html(variable_get('recaptcha_public_key', ''), NULL, variable_get('recaptcha_secure_connection', FALSE)), + '#weight' => variable_get('recaptcha_form_weight', 1), '#validate' => array('_captcha_validate' => array()), '#required' => TRUE, );