Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Course reports

From MoodleDocs
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

A course report plugin is just another folder inside course/report/. It follows standard plugin practice and may have lang, db etc. sub-folders if these are required. A version.php file must be included.

In order to add a menu entry for your plugin, you must define a function named FOOBAR_report_extend_navigation in your lib.php file, where FOOBAR is your plugin name. For example, for a module named synopsis (coursereport_synopsis in standardized form), the code will be :

function synopsis_report_extend_navigation($reportnav, $course, $context) {
    $url = new moodle_url('/course/report/synopsis/index.php', array('id' => $course->id));
    $reportnav->add(get_string('Synopsis', 'coursereport_synopsis'), $url);
}