function image_style_form_add_validate
image_style_form_add_validate($form, &$form_state)
Validate handler for adding a new image effect to an image style.
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.')); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!image!image.admin.inc/function/image_style_form_add_validate/7.x