function image_style_form_add_validate
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
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.'));
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.