Merge branch 'MDL-39397_master' of git://github.com/totara/openbadges

This commit is contained in:
Eloy Lafuente (stronk7)
2013-05-09 00:20:06 +02:00
6 changed files with 62 additions and 12 deletions
+3
View File
@@ -4727,6 +4727,9 @@ function delete_course($courseorid, $showfeedback = true) {
return false;
}
// Handle course badges.
badges_handle_course_deletion($courseid);
// make the course completely empty
remove_course_contents($courseid, $showfeedback);