1 image.admin.inc image_effect_scale_validate($element, &$form_state)

Element validate handler to ensure that either a height or a width is specified.

File

core/modules/image/image.admin.inc, line 449
Admin page callbacks for the Image module.

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.'));
  }
}