function questions_import_submit_qti in Quiz 6.3
1 call to questions_import_submit_qti()
- questions_import_form_submit in includes/
questions_import/ questions_import.admin.inc
File
- includes/
questions_import/ questions_import.admin.inc, line 302
Code
function questions_import_submit_qti(&$form, &$form_state) {
$file = file_save_upload('upload');
$row = 0;
$qti_items = questions_import_qti_extract_info($file->filepath);
// Loop through each question and import it into Drupal
foreach ($qti_items as $item) {
questions_import_qti_create_node($item, $form_state);
++$row;
}
return $row;
}