function imagecache_proportions_shadowbox_form in Imagecache Proportions 7
Retrieves and processes shadowbox formatter settings.
1 call to imagecache_proportions_shadowbox_form()
File
- ./
imagecache_proportions.module, line 277 - Field formatter for image fields that allows the user to select between 3 different image styles depending on the proportions of the original image uploaded. One style would be squared for more or less squared images, another for wider images and the…
Code
function imagecache_proportions_shadowbox_form($field, $instance, $view_mode, $form, &$form_state) {
$instance['display'][$view_mode]['settings'] = $instance['display'][$view_mode]['settings']['shadowbox'];
$form = shadowbox_field_formatter_settings_form($field, $instance, $view_mode, $form, $form_state);
unset($form['image_style']);
return $form;
}