function imagick_shadow_form in Imagick 7
Settings form for the imagick shadow effect.
Parameters
$action: The saved action form parameters.
1 string reference to 'imagick_shadow_form'
- imagick_image_effect_info in ./
imagick.module - Implements hook_image_effect_info()
File
- effects/
imagick.shadow.inc, line 72
Code
function imagick_shadow_form($data) {
$data = array_merge(imagick_shadow_defaults(), (array) $data);
$form['color'] = array(
'#type' => 'textfield',
'#title' => t('Color of the shadow'),
'#default_value' => $data['color'],
'#size' => 7,
'#colorpicker' => TRUE,
);
$form['opacity'] = array(
'#type' => 'textfield',
'#title' => t('Opacity'),
'#description' => t('The opacity of the shadow'),
'#default_value' => $data['opacity'],
'#size' => 3,
);
$form['sigma'] = array(
'#type' => 'textfield',
'#title' => t('Sigma'),
'#description' => t('The sigma of the shadow'),
'#default_value' => $data['sigma'],
'#size' => 3,
);
$form['x'] = array(
'#type' => 'textfield',
'#title' => t('X'),
'#description' => t('The X value of the shadow'),
'#default_value' => $data['x'],
'#size' => 3,
);
$form['y'] = array(
'#type' => 'textfield',
'#title' => t('Y'),
'#description' => t('The Y value of the shadow'),
'#default_value' => $data['y'],
'#size' => 3,
);
return $form;
}