I need to find in the code where the "Moodle Level" activity completion tracking is being set. The last page of a Feedback activity has a submit button that when selected (given the correct activity settings) sets the activity to complete which is displayed as a checkmark in the box on the course/view.php page. The page that sets the completion appears to be complete.php.
Can someone identify the line(s) of code where the completion is set?
Can someone indicate where in the database the activity completion status is stored that enables the activity to display the checkmark when completed?