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) {
function forum_reset_course_form($course) {
echo get_string('resetforums', 'forum'); echo ':<br />';
print_checkbox('reset_forum_news', 1, true, get_string('namenews','forum'), '', ''); echo '<br />';
- print_checkbox('reset_forum_teacher', 1, true, get_string('nameteacher','forum'), '', ''); echo '<br />';
print_checkbox('reset_forum_single', 1, true, get_string('singleforum','forum'), '', ''); echo '<br />';
print_checkbox('reset_forum_eachuser', 1, true, get_string('eachuserforum','forum'), '', ''); echo '<br />';
print_checkbox('reset_forum_general', 1, true, get_string('generalforum','forum'), '', ''); echo '<br />';