Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/completiontracking' into…
Browse files Browse the repository at this point in the history
… feature/completiontracking

# Conflicts:
#	lib.php
  • Loading branch information
irinahpe committed May 23, 2024
2 parents edd59d7 + d5990fa commit 5d021f2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,18 @@ function ratingallocate_reset_course_form_defaults($course) {
return ['reset_ratings_and_allocations' => 1];
}

/**
* Add a get_coursemodule_info function in case any ratingallocate type wants to add 'extra' information
* for the course (see resource).
*
* Given a course_module object, this function returns any "extra" information that may be needed
* when printing this activity in a course listing. See get_array_of_activities() in course/lib.php.
*
* @param stdClass $coursemodule The coursemodule object (record).
* @return cached_cm_info An object on information that the courses
* will know about (most noticeably, an icon).
*/

function ratingallocate_get_coursemodule_info($coursemodule) {
global $DB;

Expand Down

0 comments on commit 5d021f2

Please sign in to comment.