From b2e8e723eb9fb689de4770b6aab40653bfbd85fc Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Wed, 7 Mar 2007 07:13:31 +0000 Subject: [PATCH] MDL-8787 - Created new help file for News Forum Type, and overrode the help button for the forum type select in mod_form.php --- lang/en_utf8/help/forum/forumtypenews.html | 9 +++++++++ mod/forum/mod_form.php | 1 + 2 files changed, 10 insertions(+) create mode 100644 lang/en_utf8/help/forum/forumtypenews.html diff --git a/lang/en_utf8/help/forum/forumtypenews.html b/lang/en_utf8/help/forum/forumtypenews.html new file mode 100644 index 0000000000..ed115d24fc --- /dev/null +++ b/lang/en_utf8/help/forum/forumtypenews.html @@ -0,0 +1,9 @@ +

News Forum

+ +

The news forum is a special forum that is automatically created for +each course and for the front page of the site and is a place for general +announcements. You can only have one news forum per course.

+ +

The "Latest news" block will display recent discussions from this special +forum (even if you rename it). For this reason the forum will be automatically +recreated by Moodle if you are using the LatestNews block.

\ No newline at end of file diff --git a/mod/forum/mod_form.php b/mod/forum/mod_form.php index 48d8c4dd99..5af7b1bbd4 100644 --- a/mod/forum/mod_form.php +++ b/mod/forum/mod_form.php @@ -139,6 +139,7 @@ class mod_forum_mod_form extends moodleform_mod { //we want the form to display them if they are set. if ($typevalue[0]=='news'){ $type->addOption(get_string('namenews', 'forum'), 'news'); + $type->setHelpButton(array('forumtypenews', get_string('forumtypenews', 'forum'), 'forum')); $type->freeze(); $type->setPersistantFreeze(true); } -- 2.39.5