1 image.admin.inc image_style_form_add_validate($form, &$form_state)

Validate handler for adding a new image effect to an image style.

File

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

Code

function image_style_form_add_validate($form, &$form_state) {
  if (!$form_state['values']['new']) {
    form_error($form['effects']['new']['new'], t('Select an effect to add.'));
  }
}