function retina_images_form_helper in Retina Images 7
Helper function to add a "Retinafy" checkbox to a image effect form.
Parameters
array $form: The form to modify. Passed by reference.
array $data: The configuration data for the specific image effect.
3 calls to retina_images_form_helper()
- retina_images_image_crop_form in ./
retina_images.module - Form structure for the image crop form.
- retina_images_image_resize_form in ./
retina_images.module - Form structure for the image resize form.
- retina_images_image_scale_form in ./
retina_images.module - Form structure for the image scale form.
File
- ./
retina_images.module, line 93 - This module provides an image effect to assist in outputing high resolution images.
Code
function retina_images_form_helper(&$form, $data) {
$form['retinafy'] = array(
'#type' => 'checkbox',
'#default_value' => isset($data['retinafy']) ? $data['retinafy'] : 0,
'#title' => t('Retinafy'),
'#description' => t('Scale and output this image with increased resolution. It is recommended to allow upscaling with this option and set image qualtiy to 25.'),
);
}