MDL-8787 - Created new help file for News Forum Type, and overrode the help button for the forum type select in mod_form.php

This commit is contained in:
nicolasconnault 2007-03-07 07:13:31 +00:00
parent 704ca25c57
commit b2e8e723eb
2 changed files with 10 additions and 0 deletions

View File

@ -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>

View 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);
}