function node_gallery_config_form_validate in Node Gallery 6
Same name and namespace in other branches
- 6.2 node_gallery.admin.inc \node_gallery_config_form_validate()
File
- ./
node_gallery.admin.inc, line 378 - Node gallery admin file.
Code
function node_gallery_config_form_validate($form, &$form_state) {
if ($form_state['values']['next'] == t('Next')) {
if ($form_state['values']['gallery_type'] == $form_state['values']['image_type']) {
unset($form_state['values']['step']);
form_set_error('Type', t('The gallery type and image type can\'t be the same.'));
}
}
}