Got an answer to this in stackoverflow
Re: Need to modify the course completion process in Moodle
ó $a->name - $a->date
Number of replies: 0
Got an answer to this in stackoverflow