function _imagick_preview_update_preview in Imagick 7
Helper function to update the preview image
1 string reference to '_imagick_preview_update_preview'
- _imagick_preview_add_element_ajax in imagick_preview/
imagick_preview.module - Helper function to show a preview image on the effect edit form
File
- imagick_preview/
imagick_preview.module, line 33
Code
function _imagick_preview_update_preview($form, $form_state) {
$style = $form_state['image_style'];
$effect = $form_state['image_effect'];
$data = $form_state['values']['data'];
$form = _imagick_preview_form($data, $form, $style, $effect);
return $form['preview']['images'];
}