Skip to content

Commit

Permalink
support for ratingallocate made with subplugin
Browse files Browse the repository at this point in the history
  • Loading branch information
TamaroWalter committed May 9, 2024
1 parent 3cae9ce commit c47b5f7
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions classes/townsquareevents.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,9 @@ private function get_events_from_db($timestart, $timeend, $courses): array {
global $DB;

// Due to compatability reasons, only events from supported modules are shown.
// Supported modules are: core modules and custom additional modules.
$coremodules = ['assign', 'book', 'chat', 'choice', 'data', 'feedback', 'file', 'folder', 'forum', 'glossary',
'h5pactivity', 'imscp', 'label', 'lesson', 'lti', 'page', 'quiz', 'resource', 'scorm', 'survey', 'url',
'wiki', 'workshop', ];

// TODO: Additional modules should be implemented with subplugins.
$additionalmodules = ['ratingallocate'];
$modules = $coremodules + $additionalmodules;
$modules = ['assign', 'book', 'chat', 'choice', 'data', 'feedback', 'file', 'folder', 'forum', 'glossary',
'h5pactivity', 'imscp', 'label', 'lesson', 'lti', 'page', 'quiz', 'resource', 'scorm', 'survey', 'url',
'wiki', 'workshop', ];

// Prepare params for sql statement.
list($insqlcourses, $inparamscourses) = $DB->get_in_or_equal($courses, SQL_PARAMS_NAMED);
Expand Down

0 comments on commit c47b5f7

Please sign in to comment.