diff --git a/discussion.php b/discussion.php
index 135504a390..3b9b429cc7 100644
--- a/discussion.php
+++ b/discussion.php
@@ -25,6 +25,7 @@
// Include config and locallib.
require_once('../../config.php');
require_once($CFG->dirroot . '/mod/moodleoverflow/locallib.php');
+require_once($CFG->dirroot . '/course/modlib.php');
// Declare optional parameters.
$d = required_param('d', PARAM_INT); // The ID of the discussion.
@@ -160,8 +161,9 @@
echo '
';
-moodleoverflow_print_discussion($course, $cm, $moodleoverflow, $discussion, $post, $multiplemarks);
-
+//moodleoverflow_print_discussion($course, $cm, $moodleoverflow, $discussion, $post, $multiplemarks);
+$processingdata = get_moduleinfo_data($cm, $course);
+var_dump($processingdata);
echo '
';
echo $OUTPUT->footer();
diff --git a/lib.php b/lib.php
index 2285625507..672872ad9f 100644
--- a/lib.php
+++ b/lib.php
@@ -135,7 +135,6 @@ function moodleoverflow_add_instance(stdClass $moodleoverflow, mod_moodleoverflo
$moodleoverflow->timecreated = time();
// You may have to add extra stuff in here.
-
$moodleoverflow->id = $DB->insert_record('moodleoverflow', $moodleoverflow);
return $moodleoverflow->id;
diff --git a/mod_form.php b/mod_form.php
index bd95775ab9..6a2509f3bd 100644
--- a/mod_form.php
+++ b/mod_form.php
@@ -266,7 +266,15 @@ public function data_postprocessing($data) {
}
}
+ /**
+ * Set
+ * @param $default_values
+ * @return void
+ */
public function data_preprocessing(&$default_values) {
parent::data_preprocessing($default_values);
+
+ // Fill the anonymous and the grade options with the values that were set.
+
}
}