]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-8787 - Created new help file for News Forum Type, and overrode the help button...
authornicolasconnault <nicolasconnault>
Wed, 7 Mar 2007 07:13:31 +0000 (07:13 +0000)
committernicolasconnault <nicolasconnault>
Wed, 7 Mar 2007 07:13:31 +0000 (07:13 +0000)
lang/en_utf8/help/forum/forumtypenews.html [new file with mode: 0644]
mod/forum/mod_form.php

diff --git a/lang/en_utf8/help/forum/forumtypenews.html b/lang/en_utf8/help/forum/forumtypenews.html
new file mode 100644 (file)
index 0000000..ed115d2
--- /dev/null
@@ -0,0 +1,9 @@
+<h1>News Forum</h1>
+
+<p>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.</p>
+
+<p>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.</p>
\ No newline at end of file
index 48d8c4dd99c0307a2bc54c7c5049782661a68251..5af7b1bbd426e72f829435ac196cbc8719d8e412 100644 (file)
@@ -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);
         }