From: moodler Date: Fri, 25 Oct 2002 14:46:42 +0000 (+0000) Subject: Remove "news" and "social" forums from learning forums. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=86c5e69a366ca3a3d8a3367aea33d143d1d02656;p=moodle.git Remove "news" and "social" forums from learning forums. --- diff --git a/mod/forum/index.php b/mod/forum/index.php index b5a4df3412..b1ed1889be 100644 --- a/mod/forum/index.php +++ b/mod/forum/index.php @@ -103,6 +103,13 @@ array_unshift($table->align, "CENTER"); if ($learningforums = get_all_instances_in_course("forum", $course->id)) { + foreach ($learningforums as $key => $forum) { + if ($forum->type == "news" or $forum->type == "social") { + unset($learningforums[$key]); // Remove these + } + } + } + if ($learningforums) { foreach ($learningforums as $forum) { $count = count_records("forum_discussions", "forum", "$forum->id");