Creating an activity module without option for manual completion.

Creating an activity module without option for manual completion.

by Joe Cape -
Number of replies: 1
Picture of Plugin developers

I am creating an activity module for which manual completion is not appropriate. Is there any way to remove the manual completion feature for this module?

I was able to remove completion by viewing by editing the [mymodule]_supports() function to return false for FEATURE_COMPLETION_TRACKS_VIEWS and similarly remove grade support. Is there anything similar for manual completion?

Average of ratings: -
In reply to Joe Cape

Re: Creating an activity module without option for manual completion.

by David Mudrák -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators
I am not aware of a clean way how the code could prevent teachers from enabling it. If you are really sure, maybe your mod_form.php can disable the appropriate field or so. But you can (and maybe should) just leave it up to the teachers (course editors) to decide. Maybe they will find a good reason for using it that you can't see at the moment.