]> git.mjollnir.org Git - moodle.git/commitdiff
add groupings awareness to HotPot module
authorGordon Bateson <gordon@kanazawa-gu.ac.jp>
Tue, 12 Jan 2010 07:27:43 +0000 (07:27 +0000)
committerGordon Bateson <gordon@kanazawa-gu.ac.jp>
Tue, 12 Jan 2010 07:27:43 +0000 (07:27 +0000)
mod/hotpot/mod_form.php

index d19319065e2eb8aabbe0a4a2d17efd3a83bd43ef..85eae544fd5cdfaa09b2ff0dbe2eab500f33bbaf 100644 (file)
@@ -256,7 +256,11 @@ class mod_hotpot_mod_form extends moodleform_mod {
         // $mform->setAdvanced('forceplugins');
 
 //----------------------------------------------
-        $this->standard_coursemodule_elements();
+        $features = new stdClass;
+        $features->groups = true;
+        $features->groupings = true;
+        $features->groupmembersonly = true;
+        $this->standard_coursemodule_elements($features);
 //----------------------------------------------
 
         $this->add_action_buttons();