--- /Users/sbourget/Desktop/MDL/moodle 1.9 CLEAN/mod/choice/lib.php 2007-05-16 10:04:44.000000000 -0400 +++ /Applications/MAMP/htdocs/moodle19/mod/choice/lib.php 2007-07-22 09:31:55.000000000 -0400 @@ -645,5 +645,63 @@ function choice_get_post_actions() { return array('choose','choose again'); } +// Add MyMoodle support to choice module +function choice_print_overview($courses, &$htmlarray) { + global $USER, $CFG; +// These next 6 Lines are constant in all modules (just change module name) + + if (empty($courses) || !is_array($courses) || count($courses) == 0) { + return array(); + } + if (!$choices = get_all_instances_in_courses('choice',$courses)) { + return; + } + +// Get Necessary Sirings + $strchoice = get_string('modulename', 'choice'); + $strnotanswered = get_string('notanswered', 'choice'); + $stranswered = get_string('taken', 'choice'); + $strchoiceclose = get_string('choiceclose', 'choice'); + $strchoiceopen = get_string('choiceopen', 'choice'); + $strresponses = get_string('responses', 'choice'); + + foreach ($choices as $choice) { + if ($choice->timeclose != 0) { // A choice is scheduled + $str = '