function image_captcha_columnify_font_selection in CAPTCHA 6.2
Additional processing (after Drupal core's expand_checkboxes) to put the font previews in a multi-column layout.
1 string reference to 'image_captcha_columnify_font_selection'
- _image_captcha_settings_form_font_section in image_captcha/
image_captcha.admin.inc - Form elements for the font specific setting.
File
- image_captcha/
image_captcha.admin.inc, line 348 - Functions for administration/settings interface.
Code
function image_captcha_columnify_font_selection($element) {
// Get the fonts that get a preview.
$fonts = variable_get('image_captcha_fonts_preview_map_cache', array());
// And add some markup so we can put them in column layout.
foreach ($fonts as $font) {
$element[$font->filename]['#prefix'] = '<div class="image_captcha_admin_font_preview">';
$element[$font->filename]['#suffix'] = '</div>';
}
return $element;
}