function imagecache_actions_validate_number in ImageCache Actions 6.2
Same name and namespace in other branches
- 8 utility-form.inc \imagecache_actions_validate_number()
- 6 utility.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'
- imagecache_actions_pos_form in ./
utility-form.inc - Prepare a subform for displaying positioning fields
File
- ./
utility-form.inc, line 45 - 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);
}
}