From: vyshane Date: Tue, 10 Oct 2006 05:23:44 +0000 (+0000) Subject: Removed teacher forums from course reset. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ee5cdf3466fea8644dbbe279b7227000c2987cad;p=moodle.git Removed teacher forums from course reset. --- diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 1b4dfc645a..dc8edc9c8f 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -4341,12 +4341,6 @@ function forum_delete_userdata($data, $showfeedback=true) { notify($strreset.': '.get_string('namenews','forum'), 'notifysuccess'); } } - if (!empty($data->reset_forum_teacher)) { - $select = "$sql and f.type = 'teacher' "; - if (execute_sql($select, false) and $showfeedback) { - notify($strreset.': '.get_string('nameteacher','forum'), 'notifysuccess'); - } - } if (!empty($data->reset_forum_single)) { $select = "$sql and f.type = 'single' and fp.parent > 0 "; if (execute_sql($select, false) and $showfeedback) { @@ -4383,7 +4377,6 @@ function forum_delete_userdata($data, $showfeedback=true) { function forum_reset_course_form($course) { echo get_string('resetforums', 'forum'); echo ':
'; print_checkbox('reset_forum_news', 1, true, get_string('namenews','forum'), '', ''); echo '
'; - print_checkbox('reset_forum_teacher', 1, true, get_string('nameteacher','forum'), '', ''); echo '
'; print_checkbox('reset_forum_single', 1, true, get_string('singleforum','forum'), '', ''); echo '
'; print_checkbox('reset_forum_eachuser', 1, true, get_string('eachuserforum','forum'), '', ''); echo '
'; print_checkbox('reset_forum_general', 1, true, get_string('generalforum','forum'), '', ''); echo '
';