removing unused adv cohort role option from settings
authorPetr Skoda <skodak@moodle.org>
Mon, 19 Jul 2010 12:55:19 +0000 (12:55 +0000)
committerPetr Skoda <skodak@moodle.org>
Mon, 19 Jul 2010 12:55:19 +0000 (12:55 +0000)
enrol/cohort/settings.php

index 07b1c97..92091a3 100644 (file)
@@ -36,9 +36,8 @@ if ($ADMIN->fulltree) {
         $options = get_default_enrol_roles(get_context_instance(CONTEXT_SYSTEM));
         $student = get_archetype_roles('student');
         $student = reset($student);
-        $settings->add(new admin_setting_configselect_with_advanced('enrol_cohort/roleid',
-            get_string('defaultrole', 'role'), '',
-            array('value'=>$student->id, 'adv'=>true), $options));
+        $settings->add(new admin_setting_configselect('enrol_cohort/roleid',
+            get_string('defaultrole', 'role'), '', $student->id, $options));
     }
 }