From: ikawhero Date: Fri, 10 Mar 2006 07:46:24 +0000 (+0000) Subject: Adding new pluggable reports X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=eaad0cb61468d01b598d437492d76d9deefff0d5;p=moodle.git Adding new pluggable reports --- diff --git a/admin/index.php b/admin/index.php index 59f6110dd1..97a7992022 100644 --- a/admin/index.php +++ b/admin/index.php @@ -432,7 +432,7 @@ $table->data[] = array(''.get_string('stickyblocks','admin').'', '
'.get_string('adminhelpstickyblocks').'
'); if (!empty($CFG->enablestats)) { - $table->data[] = array(''.get_string('reports').'', + $table->data[] = array(''.get_string('reports').'', '
'.get_string('adminhelpreports').'
'); } $table->data[] = array(''.get_string('environment','admin').'', diff --git a/admin/report.php b/admin/report.php new file mode 100644 index 0000000000..2845053c17 --- /dev/null +++ b/admin/report.php @@ -0,0 +1,26 @@ +'.$stradmin.' -> '.$strreports); + + $directories = get_list_of_plugins('admin/report'); + + foreach ($directories as $directory) { + echo '
'; + include_once($CFG->dirroot.'/admin/report/'.$directory.'/mod.php'); // Fragment for listing + echo '
'; + } + + print_footer(); +?> +