changed git call from https to git readonly
[atutor.git] / mods / photo_album / module_delete.php
1 <?php\r
2 /*==============================================================\r
3   Photo Album\r
4  ==============================================================\r
5   Copyright (c) 2006 by Dylan Cheon & Kelvin Wong\r
6   Institute for Assistive Technology / University of Victoria\r
7   http://www.canassist.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  */\r
14 // $Id:\r
15 \r
16 /**\r
17  * @desc        This file deletes all the course images/comments in the photo album when a course is deleted\r
18  * @author      Dylan Cheon & Kelvin Wong\r
19  * @copyright   2006, Institute for Assistive Technology / University of Victoria \r
20  * @link        http://www.canassist.ca/                                    \r
21  * @license GNU\r
22  */\r
23  \r
24 require_once ('define.php');\r
25 require_once ('include/data_func.php');\r
26 require_once ('include/general_func.php');\r
27 \r
28 function photo_album_delete($course){\r
29         $images=get_all_images($course);\r
30         while ($row=mysql_fetch_array($images)){\r
31                 delete_image($row['image_id'], $row['course_id']);\r
32         }\r
33 }\r
34 \r
35 ?>