function imagecache_actions_validate_number in ImageCache Actions 6
Same name and namespace in other branches
- 8 utility-form.inc \imagecache_actions_validate_number()
- 6.2 utility-form.inc \imagecache_actions_validate_number()
- 7 utility-form.inc \imagecache_actions_validate_number()
Ensure the numbers are valid.
Set blanks to zero, just so the status summary doesn't get odd blanks
1 string reference to 'imagecache_actions_validate_number'
- imagecacheactions_pos_form in ./
utility.inc - Prepare a subform for displaying positioning fields
File
- ./
utility.inc, line 69 - Utility form, conversion and rendering functions for image processes
Code
function imagecache_actions_validate_number(&$element, &$form_state) {
if (empty($element['#value'])) {
form_set_value($element, 0, $form_state);
}
}