Added data module to list of allowed modules for the report.

This commit is contained in:
vyshane
2006-03-09 06:27:29 +00:00
parent 4c03f9209d
commit 53008a8d4b
+1 -1
View File
@@ -48,7 +48,7 @@
$allowedmodules = array('assignment','book','chat','choice','exercise','forum','glossary','hotpot',
'journal','lesson','questionnaire','quiz','resource','scorm',
'survey','wiki','workshop'); // some don't make sense here - eg 'label'
'survey','wiki','workshop', 'data'); // some don't make sense here - eg 'label'
if (!$modules = get_records_sql('SELECT DISTINCT module,name FROM '.$CFG->prefix.'course_modules cm JOIN '.
$CFG->prefix.'modules m ON cm.module = m.id WHERE course = '.$course->id)) {