removed mods directory from the ATutor codebase
[atutor.git] / mods / basiclti / module_delete.php
diff --git a/mods/basiclti/module_delete.php b/mods/basiclti/module_delete.php
deleted file mode 100644 (file)
index a169a82..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-/*******
- * this function named [module_name]_delete is called whenever a course content is deleted
- * which includes when restoring a backup with override set, or when deleting an entire course.
- * the function must delete all module-specific material associated with this course.
- * $course is the ID of the course to delete.
- */
-
-function basiclti_delete($course) {
-       global $db;
-
-       // delete basiclti course table entries
-       $sql = "DELETE FROM ".TABLE_PREFIX."basiclti WHERE course_id=$course";
-       mysql_query($sql, $db);
-
-       // delete basiclti course files
-       $path = AT_CONTENT_DIR .'basiclti/' . $course .'/';
-       clr_dir($path);
-}
-
-?>