function imagepicker_multitask_groups_form_validate in Image Picker 7
Same name and namespace in other branches
- 6.2 imagepicker.functions.inc \imagepicker_multitask_groups_form_validate()
Validate form
File
- ./
imagepicker.functions.inc, line 763 - @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function imagepicker_multitask_groups_form_validate($form, &$form_state) {
$grouplist = array_filter($form_state['values']['grouplist']);
if (!count($grouplist)) {
form_set_error('grouplist', t('You did not select any groups.'));
}
}