Skip to content

Commit

Permalink
MDL-41463 course: Reset remove groups section advanced toggle.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaboesch committed Jun 28, 2018
1 parent f61ee4e commit 4f2e193
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions course/reset_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,11 @@ function definition (){
$mform->addElement('header', 'groupheader', get_string('groups'));

$mform->addElement('checkbox', 'reset_groups_remove', get_string('deleteallgroups', 'group'));
$mform->setAdvanced('reset_groups_remove');
$mform->addElement('checkbox', 'reset_groups_members', get_string('removegroupsmembers', 'group'));
$mform->setAdvanced('reset_groups_members');
$mform->disabledIf('reset_groups_members', 'reset_groups_remove', 'checked');

$mform->addElement('checkbox', 'reset_groupings_remove', get_string('deleteallgroupings', 'group'));
$mform->setAdvanced('reset_groupings_remove');
$mform->addElement('checkbox', 'reset_groupings_members', get_string('removegroupingsmembers', 'group'));
$mform->setAdvanced('reset_groupings_members');
$mform->disabledIf('reset_groupings_members', 'reset_groupings_remove', 'checked');

$unsupported_mods = array();
Expand Down

0 comments on commit 4f2e193

Please sign in to comment.