2 /****************************************************************/
\r
4 /****************************************************************/
\r
5 /* Copyright (c) 2002-2009 */
\r
6 /* Adaptive Technology Resource Centre / University of Toronto */
\r
7 /* http://atutor.ca */
\r
9 /* This program is free software. You can redistribute it and/or*/
\r
10 /* modify it under the terms of the GNU General Public License */
\r
11 /* as published by the Free Software Foundation. */
\r
12 /****************************************************************/
\r
16 * this function named [module_name]_delete is called whenever a course content is deleted
\r
17 * which includes when restoring a backup with override set, or when deleting an entire course.
\r
18 * the function must delete all module-specific material associated with this course.
\r
19 * $course is the ID of the course to delete.
\r
22 function hello_world_delete($course) {
\r
25 // delete hello_world course table entries
\r
26 $sql = "DELETE FROM ".TABLE_PREFIX."hello_world WHERE course_id=$course";
\r
27 mysql_query($sql, $db);
\r
29 // delete hello_world course files
\r
30 $path = AT_CONTENT_DIR .'hello_world/' . $course .'/';
\r