function avatar_selection_images_form_validate in Avatar Selection 5
Validate the submission.
Check whether: Upload has been chosen AND the file upload form is not empty.
File
- ./
avatar_selection.module, line 532
Code
function avatar_selection_images_form_validate($form_id, $form_values) {
$error = FALSE;
if ($form_values['op'] == t('Upload')) {
if ($file = file_check_upload('picture_upload')) {
avatar_selection_validate_picture($file);
}
}
}