function retina_images_form_image_style_form_alter in Retina Images 7
Same name and namespace in other branches
- 8 retina_images.module \retina_images_form_image_style_form_alter()
Implements hook_form_FORM_ID_alter().
File
- ./
retina_images.module, line 343 - This module provides an image effect to assist in outputing high resolution images.
Code
function retina_images_form_image_style_form_alter(&$form, &$form_state) {
// Get the style to pass to our new theme function.
$style = $form_state['image_style'];
// Override the preview image area to use our own preview.
$form['preview']['#markup'] = theme('retina_images_style_preview', array(
'style' => $style,
));
}