12345678910111213141516171819202122232425262728 |
- <?php
- function reset_submissions($contextid) {
- global $DB;
-
- $DB->delete_records('gradeimporter_submission');
- $DB->delete_records('gradeimporter_feedback');
-
- $fs = get_file_storage();
- $fs->delete_area_files($contextid, 'mod_gradeimporter', 'submissionfiles');
- }
|