function image_effect_scale_validate
7.x image.admin.inc | image_effect_scale_validate($element, &$form_state) |
Element validate handler to ensure that either a height or a width is specified.
1 string reference to 'image_effect_scale_validate'
- image_scale_form in drupal-7.x/
modules/ image/ image.admin.inc - Form structure for the image scale form.
File
- drupal-7.x/
modules/ image/ image.admin.inc, line 509 - Administration pages for image settings.
Code
function image_effect_scale_validate($element, &$form_state) {
if (empty($element['width']['#value']) && empty($element['height']['#value'])) {
form_error($element, t('Width and height can not both be blank.'));
}
}