3 * this function named [module_name]_delete is called whenever a course content is deleted
\r
4 * which includes when restoring a backup with override set, or when deleting an entire course.
\r
5 * the function must delete all module-specific material associated with this course.
\r
6 * $course is the ID of the course to delete.
\r
9 function hello_world_delete($course) {
\r
12 // delete hello_world course table entries
\r
13 $sql = "DELETE FROM ".TABLE_PREFIX."hello_world WHERE course_id=$course";
\r
14 mysql_query($sql, $db);
\r
16 // delete hello_world course files
\r
17 $path = AT_CONTENT_DIR .'hello_world/' . $course .'/';
\r