| 1 |
<?php |
<?php |
| 2 |
// $Id: image_captcha.admin.inc,v 1.26 2009/09/22 22:51:00 soxofaan Exp $ |
// $Id: image_captcha.admin.inc,v 1.27 2009/09/23 20:43:53 soxofaan Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 92 |
'#type' => 'select', |
'#type' => 'select', |
| 93 |
'#title' => t('Font'), |
'#title' => t('Font'), |
| 94 |
'#default_value' => $default_font, |
'#default_value' => $default_font, |
| 95 |
'#description' => t('Select the font to use for the text in the image CAPTCHA. Apart from the provided defaults, you can also use your own TrueType font: put a TrueType font file (filename extension .ttf) in the "fonts" directory of the image CAPTCHA module (directory "%fontsdir") or in the Drupal "files" directory (directory "%filesdir").', |
'#description' => t('Select the font to use for the text in the image CAPTCHA. Apart from the provided defaults, you can also use your own TrueType fonts (filename extension .ttf) by putting them in the Drupal "files" directory (directory %filesdir), %fonts_library_general or %fonts_library_specific.', |
| 96 |
array('%fontsdir' => drupal_get_path('module', 'image_captcha') .'/fonts', |
array('%filesdir' => file_directory_path(), |
| 97 |
'%filesdir' => file_directory_path()) |
'%fonts_library_general' => 'sites/all/libraries/fonts', |
| 98 |
|
'%fonts_library_specific' => conf_path() .'/libraries/fonts', |
| 99 |
|
) |
| 100 |
), |
), |
| 101 |
'#options' => $available_fonts, |
'#options' => $available_fonts, |
| 102 |
); |
); |