You are here

function image_validate in Image 5

Same name and namespace in other branches
  1. 5.2 image.module \image_validate()

File

./image.module, line 550

Code

function image_validate($node) {
  if (empty($node->images[IMAGE_ORIGINAL])) {
    form_set_error('image', t('You must upload an image.'));
  }
}