function user_import_preconfigured_validate in User Import 5.2
File
- ./
user_import.module, line 619 - Import users from a comma separated file (csv).
Code
function user_import_preconfigured_validate($form_id, $form_values) {
// check file uploaded OK
$file = _user_import_file();
if (empty($file->filename)) {
form_set_error('file_upload', t('A valid file must be selected.'));
}
}