I am attempting to add the Grade OverView Report to the settings block using the theme Renderes.php. I can get the Grade Report link to display OK in the block BUT I cannot get the renderer to append the COURSE ID to the link. For example I would like the link to read "/grade/report/overview/index.php?id=146" where 146 is the course id, but it only displays "/grade/report/overview/index.php"
The My Theme Renderers.php code for the link code is as follows;
$content .= html_writer::start_tag('div', array('id' => 'overview_rep_link'));
$content .= html_writer::empty_tag('img', array('src'=>'/moodle/theme/safetyline/pix_core/i/report.png'));
$content .= html_writer::link(new moodle_url('/grade/report/overview/index.php', array('id'=> $COURSE->id)), get_string('overviewrep'));
$content .= html_writer::end_tag('div');
The highlighted text appears to be the problem, ie the "array('id'=> $COURSE->id" is not working!
I attach a copy of the theme renderers.php
Any help would be appreciated
Thanks in advance