You are here

function imageapi_optimize_toolkit_element_validate in Image Optimize (or ImageAPI Optimize) 7

Same name and namespace in other branches
  1. 6 imageapi_optimize.module \imageapi_optimize_toolkit_element_validate()

Validation callback for Base toolkit field.

1 string reference to 'imageapi_optimize_toolkit_element_validate'
image_imageapi_optimize_settings in ./imageapi_optimize.module
Settings form callback for the image toolkit.

File

./imageapi_optimize.module, line 177
Image optimize functionalities.

Code

function imageapi_optimize_toolkit_element_validate($element) {
  if ($element['#value'] == 'imageapi_optimize') {
    form_set_error($element['#name'], t('You must select a different toolkit from ImageAPI Optimize itself.'));
  }
}