Course Completion

Course Completion

by danny willford -
Number of replies: 2

Where is the code that fires to update the database when a course is completed?  I need to add code to send confirmation of completion to another database outside of moodle.  I know what code I need to write, I just can't seem where to place it.

 

Thanks!

Average of ratings: -
In reply to danny willford

Re: Course Completion

by Darko Miletić -
Picture of Core developers Picture of Plugin developers

Subscribe to the course completion event.

http://docs.moodle.org/dev/Events_API

See also lib/eventslib.php and lib/completionlib.php

Average of ratings: Useful (2)
In reply to Darko Miletić

Re: Course Completion

by danny willford -

Wonderful!  Thank you Darko!  I had looked in the Events API before but I had skipped over the User section everytime.  Now that I see it, it makes sense, but I just assumed it would have been in the course section.

 

Thanks again!

 

~Danny