I am creating a new activity module. I don't want it to track grades (which are not applicable to it) but I do want it to track activity completion.
I have implemented the method mymodule_get_completion_state() method in lib.php.
The problem I am having is that when the update_state() method is called (from a completion_info object), I get the following error:
Cannot find grade item for 'mymodule'
cm '116' matching number '0'
----
Does there need to be a record in the grade item table corresponding to the new module for completion tracking to work? If so, how do I set up the new module to ensure this gets added?
Thanks.