mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 18:36:42 +02:00
MDL-30790 - Option to collapse or expand sub-folders
This commit is contained in:
parent
7112729206
commit
f295727859
8 changed files with 38 additions and 7 deletions
|
@ -55,7 +55,10 @@ class mod_folder_mod_form extends moodleform_mod {
|
|||
$mform->addHelpButton('display', 'display', 'mod_folder');
|
||||
$mform->setExpanded('content');
|
||||
|
||||
|
||||
// Adding option to show sub-folders expanded or collapsed by default.
|
||||
$mform->addElement('advcheckbox', 'show_expanded', get_string('show_expanded', 'folder'));
|
||||
$mform->addHelpButton('show_expanded', 'show_expanded', 'mod_folder');
|
||||
$mform->setDefault('show_expanded', $config->show_expanded);
|
||||
//-------------------------------------------------------
|
||||
$this->standard_coursemodule_elements();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue