mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
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:
parent
704ca25c57
commit
b2e8e723eb
9
lang/en_utf8/help/forum/forumtypenews.html
Normal file
9
lang/en_utf8/help/forum/forumtypenews.html
Normal 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>
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user