function file_style_form_add_validate in Styles 7
Same name and namespace in other branches
- 7.2 contrib/file_styles/file_styles.admin.inc \file_style_form_add_validate()
Validate handler for adding a new file effect to a file style.
File
- contrib/
file_styles/ file_styles.admin.inc, line 255 - Administrative page callbacks for the File: Styles module.
Code
function file_style_form_add_validate($form, &$form_state) {
if (!$form_state['values']['new']) {
form_error($form['effects']['new']['new'], t('Select an effect to add.'));
$form_state['rebuild'] = TRUE;
}
}