You are here

function imagick_crop_form in Imagick 7

Form structure for the image crop form.

Note that this is not a complete form, it only contains the portion of the form for configuring the crop options. Therefore it does not not need to include metadata about the effect, nor a submit button.

Parameters

$data: The current configuration for this crop effect.

1 string reference to 'imagick_crop_form'
imagick_image_effect_info in ./imagick.module
Implements hook_image_effect_info()

File

effects/imagick.crop.inc, line 75

Code

function imagick_crop_form($data) {
  $data = array_merge(imagick_crop_defaults(), (array) $data);
  $form = image_crop_form($data);
  return $form;
}