+++ /dev/null
-<?php\r
-/*******\r
- * this function named [module_name]_delete is called whenever a course content is deleted\r
- * which includes when restoring a backup with override set, or when deleting an entire course.\r
- * the function must delete all module-specific material associated with this course.\r
- * $course is the ID of the course to delete.\r
- */\r
-\r
-function hello_world_delete($course) {\r
- global $db;\r
-\r
- // delete hello_world course table entries\r
- $sql = "DELETE FROM ".TABLE_PREFIX."hello_world WHERE course_id=$course";\r
- mysql_query($sql, $db);\r
-\r
- // delete hello_world course files\r
- $path = AT_CONTENT_DIR .'hello_world/' . $course .'/';\r
- clr_dir($path);\r
-}\r
-\r
-?>
\ No newline at end of file