Index: temp_moodle_dev/moodle/mod/lamstwo/tooladapter_choice.php =================================================================== diff -u -rd96397c86fe3c3f9de6e5963c9dc0f354b416219 -rb255ec6902a104eb0758affbe45a04e59f78198e --- temp_moodle_dev/moodle/mod/lamstwo/tooladapter_choice.php (.../tooladapter_choice.php) (revision d96397c86fe3c3f9de6e5963c9dc0f354b416219) +++ temp_moodle_dev/moodle/mod/lamstwo/tooladapter_choice.php (.../tooladapter_choice.php) (revision b255ec6902a104eb0758affbe45a04e59f78198e) @@ -28,6 +28,7 @@ $sectionid = optional_param('section', 1, PARAM_INT); $courseid = optional_param('cs', 1, PARAM_INT); $outputname = optional_param('oname', '', PARAM_TEXT); + $optionid = optional_param('optionID', PARAM_INT); $user = get_record('user', 'username', $username); @@ -48,9 +49,12 @@ echo $text; break; case 'output': - $output = choice_get_tool_output($cmid, $user->id); + $output = choice_get_tool_output($cmid, $user->id,$optionid); echo $output; break; + case 'getoptions': + choice_get_options($cmid); + break; default: } ?> \ No newline at end of file