function imagecache_actions_validate_alpha in ImageCache Actions 6
Same name and namespace in other branches
- 8 utility-form.inc \imagecache_actions_validate_alpha()
- 6.2 utility-form.inc \imagecache_actions_validate_alpha()
- 7 utility-form.inc \imagecache_actions_validate_alpha()
1 string reference to 'imagecache_actions_validate_alpha'
- textactions_text2canvas_form in ./
textactions.inc - Place text on top of the current canvas
File
- ./
utility.inc, line 73 - Utility form, conversion and rendering functions for image processes
Code
function imagecache_actions_validate_alpha(&$element, &$form_status) {
if (!is_numeric($element['#value']) || $element['#value'] < 1 || $element['#value'] > 100) {
form_set_error(join('][', $element['#parents']), t('Opacity must be a number between 1 and 100.'));
}
}