This commit is contained in:
Andrew Nicols 2015-07-22 08:55:05 +08:00
commit 50834fa15f

View File

@ -175,6 +175,16 @@ if ($ADMIN->fulltree) {
$setting->set_locked_flag_options(admin_setting_flag::ENABLED, false);
$settings->add($setting);
$name = new lang_string('preventsubmissionnotingroup', 'mod_assign');
$description = new lang_string('preventsubmissionnotingroup_help', 'mod_assign');
$setting = new admin_setting_configcheckbox('assign/preventsubmissionnotingroup',
$name,
$description,
0);
$setting->set_advanced_flag_options(admin_setting_flag::ENABLED, false);
$setting->set_locked_flag_options(admin_setting_flag::ENABLED, false);
$settings->add($setting);
$name = new lang_string('requireallteammemberssubmit', 'mod_assign');
$description = new lang_string('requireallteammemberssubmit_help', 'mod_assign');
$setting = new admin_setting_configcheckbox('assign/requireallteammemberssubmit',
@ -252,16 +262,6 @@ if ($ADMIN->fulltree) {
$setting->set_advanced_flag_options(admin_setting_flag::ENABLED, false);
$setting->set_locked_flag_options(admin_setting_flag::ENABLED, false);
$settings->add($setting);
$name = new lang_string('preventsubmissionnotingroup', 'mod_assign');
$description = new lang_string('preventsubmissionnotingroup_help', 'mod_assign');
$setting = new admin_setting_configcheckbox('assign/preventsubmissionnotingroup',
$name,
$description,
0);
$setting->set_advanced_flag_options(admin_setting_flag::ENABLED, false);
$setting->set_locked_flag_options(admin_setting_flag::ENABLED, false);
$settings->add($setting);
}
$ADMIN->add('modassignfolder', $settings);