2 /*==============================================================
\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
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
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
24 require_once ('define.php');
\r
25 require_once ('include/data_func.php');
\r
26 require_once ('include/general_func.php');
\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