Commit 46e0969f authored by soxofaan's avatar soxofaan
parent 492e9c36
......@@ -219,10 +219,10 @@ function image_captcha_settings_form() {
* Pre render function for image_captcha_settings_form
function image_captcha_settings_form_pre_render($form_id, $form) {
if (count($form['image_captcha_font']['#options']) == 1) {
if (count($form['image_captcha_font_settings']['image_captcha_font']['#options']) == 1) {
drupal_set_message(t('The image captcha module works best with a TrueType font file (TTF) for generating the images, but because of licencing issues it is not allowed to package fonts with the module. A simple built-in bitmap font is provided as default instead. You can install TrueType fonts yourself by putting them in the fonts directory of the image captcha module (directory "%fontsdir") or by uploading them to your Drupal file system (directory "%filesdir") with for example the upload module.', array('%fontsdir' => drupal_get_path('module', 'image_captcha') .'/fonts', '%filesdir' => file_directory_path())), 'warning');
if ($form['image_captcha_font']['#default_value'] == 'BUILTIN') {
if ($form['image_captcha_font_settings']['image_captcha_font']['#default_value'] == 'BUILTIN') {
drupal_set_message(t('The usage of the built-in bitmap font it is not recommended because of its small size and missing UTF-8 support.'), 'warning');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment