You are here

function imageapi_optimize_toolkit_element_validate in Image Optimize (or ImageAPI Optimize) 6

Same name and namespace in other branches
  1. 7 imageapi_optimize.module \imageapi_optimize_toolkit_element_validate()
1 string reference to 'imageapi_optimize_toolkit_element_validate'
imageapi_optimize_settings_form in ./imageapi_optimize.module
Settings form for the toolkit.

File

./imageapi_optimize.module, line 125
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.'));
  }
}