changed git call from https to git readonly
[atutor.git] / mods / social / module_delete.php
1 <?php\r
2 /****************************************************************/\r
3 /* ATutor                                                                                                               */\r
4 /****************************************************************/\r
5 /* Copyright (c) 2002-2009                                                                              */\r
6 /* Adaptive Technology Resource Centre / University of Toronto  */\r
7 /* http://atutor.ca                                                                                             */\r
8 /*                                                              */\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
13 // $Id$\r
14 \r
15 /*******\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
20  */\r
21 /*\r
22 function hello_world_delete($course) {\r
23         global $db;\r
24 \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
28 \r
29         // delete hello_world course files\r
30         $path = AT_CONTENT_DIR .'hello_world/' . $course .'/';\r
31         clr_dir($path);\r
32 }\r
33 */\r
34 ?>