You are here

function imageapi_imagemagick_quality_element_validate in ImageAPI 5

Same name and namespace in other branches
  1. 6 imageapi_imagemagick.module \imageapi_imagemagick_quality_element_validate()

File

./imageapi_imagemagick.module, line 92
ImageMagick toolkit functions

Code

function imageapi_imagemagick_quality_element_validate($element) {
  if ($element['#value'] < 0 || $element['#value'] > 100) {
    form_set_error($element['#name'], t('Compression Quality must be a value between 0 and 100.'));
  }
}