function imagick_rotate_form in Imagick 7
Form structure for the image rotate form.
Note that this is not a complete form, it only contains the portion of the form for configuring the rotate options. Therefore it does not not need to include metadata about the effect, nor a submit button.
Parameters
$data: The current configuration for this rotate effect.
1 string reference to 'imagick_rotate_form'
- imagick_image_effect_info in ./
imagick.module - Implements hook_image_effect_info()
File
- effects/
imagick.rotate.inc, line 85
Code
function imagick_rotate_form($data) {
$data = array_merge(imagick_rotate_defaults(), (array) $data);
$form = image_rotate_form($data);
$form['bgcolor']['#colorpicker'] = TRUE;
return $form;
}