You are here

function questions_import_validate_qti in Quiz 6.3

1 call to questions_import_validate_qti()
questions_import_form_validate in includes/questions_import/questions_import.admin.inc

File

includes/questions_import/questions_import.admin.inc, line 174

Code

function questions_import_validate_qti($file, $field_separator, $question_type) {
  $error_msg = '';
  $row = 0;
  $lines = file($file->filepath);
  if (empty($lines)) {
    form_set_error('xmlfile', 'File could not be uploaded. Please try again.');
  }
}