function imagick_roundedcorners_form in Imagick 7
Settings form for the imagick rounded corners effect.
Parameters
$action: The saved action form parameters.
1 string reference to 'imagick_roundedcorners_form'
- imagick_image_effect_info in ./
imagick.module - Implements hook_image_effect_info()
File
- effects/
imagick.roundedcorners.inc, line 43
Code
function imagick_roundedcorners_form($data) {
$data = array_merge(imagick_roundedcorners_defaults(), (array) $data);
$form['x_rounding'] = array(
'#type' => 'textfield',
'#title' => t('X rounding'),
'#description' => t('The x rounding of the rounded corners'),
'#default_value' => $data['x_rounding'],
'#size' => 3,
);
$form['y_rounding'] = array(
'#type' => 'textfield',
'#title' => t('Y rounding'),
'#description' => t('The y rounding of the rounded corners'),
'#default_value' => $data['y_rounding'],
'#size' => 3,
);
$form['stroke_width'] = array(
'#type' => 'textfield',
'#title' => t('Stroke width'),
'#description' => t('The stroke width of the rounded corners'),
'#default_value' => $data['stroke_width'],
'#size' => 3,
);
$form['displace'] = array(
'#type' => 'textfield',
'#title' => t('Displace'),
'#description' => t('The displace of the rounded corners'),
'#default_value' => $data['displace'],
'#size' => 3,
);
$form['size_correction'] = array(
'#type' => 'textfield',
'#title' => t('Size correction'),
'#description' => t('The size correction of the rounded corners'),
'#default_value' => $data['size_correction'],
'#size' => 3,
);
return $form;
}