function canvasactions_blur_form in ImageCache Actions 7
Same name and namespace in other branches
- 8 canvasactions/canvasactions.inc \canvasactions_blur_form()
Image effect form callback for the blur effect.
Parameters
array $data: The current configuration for this image effect.
Return value
array The form definition for this effect.
1 string reference to 'canvasactions_blur_form'
- imagecache_canvasactions_image_effect_info in canvasactions/
imagecache_canvasactions.module - Implements hook_image_effect_info().
File
- canvasactions/
canvasactions.inc, line 1112
Code
function canvasactions_blur_form(array $data) {
$form['intensity'] = array(
'#type' => 'textfield',
'#title' => t('Blur intensity'),
'#description' => t('A higher intensity results in more blur. The larger the image, the larger value you need to get a really blurred image, think 50 to 100 for 600x400 images.'),
'#size' => 5,
'#default_value' => isset($data['intensity']) ? (int) $data['intensity'] : 2,
'#element_validate' => array(
'element_validate_integer_positive',
),
);
return $form;
}