MDL-64878 grades: Update delete_instance
authorDamyon Wiese <damyon@moodle.com>
Wed, 27 Feb 2019 02:35:42 +0000 (10:35 +0800)
committerDamyon Wiese <damyon@moodle.com>
Wed, 27 Feb 2019 02:37:54 +0000 (10:37 +0800)
commit40fe1538160d61765ac98ad54bf88491e8e00bcf
treed62e7fffc1a2ebead3cd3c2de2dbb1f97e688238
parent031cf251c11ed6ee3017d151a38df61958729636
MDL-64878 grades: Update delete_instance

When grades are deleted, it needs to know the context so any files
in the gradebook can be deleted. This means module delete_instance
functions must delete the grade_item before they delete the module record.
mod/assign/locallib.php
mod/assignment/lib.php
mod/data/lib.php
mod/forum/lib.php
mod/lesson/locallib.php
mod/lti/lib.php
mod/quiz/lib.php
mod/scorm/lib.php
mod/workshop/lib.php