2

I need to reset the default error message in the captcha module when you enter the wrong answer.

captcha.module line 616

form_set_error('captcha_response', t('The answer you entered for the CAPTCHA was not correct.'));

I'm not quite sure where this needs to be done. Preprocess function?

Thanks, Josh

1

1 Answer 1

2

Check out String Overrides module. It allows you to override any translatable string (anything that uses t()) and is very convenient for overriding some text that is shipped with other modules.

If you want to do it without installing new modules - uncomment and edit this in the settings.php file (line ~458):

# $conf['locale_custom_strings_en'][''] = array(
#   'forum'      => 'Discussion board',
#   '@count min' => '@count minutes',
# );
2
  • This would work, but we cannot currently add any more modules. It must be done in code.
    – user12913
    Jan 22, 2013 at 22:48
  • Answer updated. Jan 22, 2013 at 23:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.