function image_style_form_add_validate in Drupal 7
Validate handler for adding a new image effect to an image style.
1 string reference to 'image_style_form_add_validate'
- image_style_form in modules/
image/ image.admin.inc - Form builder; Edit an image style name and effects order.
File
- modules/
image/ image.admin.inc, line 173 - Administration pages for image settings.
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.'));
}
}