MDL-41611 mod_forum: Display inline available when supported

This commit is contained in:
Frederic Massart 2013-10-04 11:19:53 +08:00
parent d9203fb775
commit 98e9e91505

View File

@ -54,6 +54,10 @@ class mod_folder_mod_form extends moodleform_mod {
array(FOLDER_DISPLAY_PAGE => get_string('displaypage', 'mod_folder'),
FOLDER_DISPLAY_INLINE => get_string('displayinline', 'mod_folder')));
$mform->addHelpButton('display', 'display', 'mod_folder');
if (!$this->courseformat->has_view_page()) {
$mform->setConstant('display', FOLDER_DISPLAY_PAGE);
$mform->hardFreeze('display');
}
$mform->setExpanded('content');
// Adding option to show sub-folders expanded or collapsed by default.