function imagick_polaroid_form in Imagick 7
Settings form for the imagick polaroid effect.
Parameters
$action: The saved action form parameters.
1 string reference to 'imagick_polaroid_form'
- imagick_image_effect_info in ./
imagick.module - Implements hook_image_effect_info()
File
- effects/
imagick.polaroid.inc, line 50
Code
function imagick_polaroid_form($data) {
$data = array_merge(imagick_polaroid_defaults(), (array) $data);
$form['angle'] = array(
'#type' => 'textfield',
'#title' => t('angle'),
'#description' => t('The angle of the polaroid image. Leave this field empty to generate a random angle between -30 and 30 degrees.'),
'#default_value' => $data['angle'],
'#size' => 3,
);
return $form;
}