General plugins (Local): Course recompletion

Maintained by Picture of Dan Marsden Dan Marsden, Picture of Catalyst IT Catalyst IT
This plugin adds course level settings for recompletion - clearing all course and activity completion for a user based on the duration set notifying the student they need to return to the course and recomplete it.
69 sites
15 fans

This plugin adds course level settings for recompletion - clearing all course and activity completion for a user based on the duration set notifying the student they need to return to the course and recomplete it.

This plugin could be used to facilitate annual re-certification.

This plugin deletes existing course completion and activity completion data based on the schedule set by the teacher including the ability to delete Quiz and SCORM attempts within the course. You can also choose to retain the quiz and SCORM attempts within archive tables within the recompletion plugin (You will have to write your own reports to view this archived data though - no reports are currently included in this plugin.)

The following information is cleared from the course during recompletion:

  • All activity grades cleared (and saved to standard grade history tables.)
  • All activity completion and course completion flags removed. (with the option to archive this information)

The following activities have extra support:

  1. Quiz - You can choose to delete all existing quiz attempt data with the option to archive the information or, you can keep the existing attempts and give the student the ability to add new attempts.

  2. SCORM - You can choose to delete all existing SCORM attempt data with the option to archive the information.

  3. Assignment - You can choose to give the student another attempt (if the assignment is configured to allow reopening and the maximum number of attempts has not been reached.

Other activities that store user data will have the activity completion data reset, but may require manual intervention as they are not yet supported fully. Get in touch privately if you would like to fund support for other activities with user data.

For more information on the current issues with this plugin please see the issues tracker:


Screenshot #0


Picture of Dan Marsden
Dan Marsden (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Dan Marsden
    Tue, 16 Jan 2018, 6:26 AM
    Thanks Gordon - feel free to help us work on this plugin - funding and pull requests always welcome.
    FYI - I've just quickly added an archive function to the latest version - no reporting features included but the data can be retrieved using the various sql reporting tools that are currently available.
  • Picture of Mariann Abosné Lazányi
    Fri, 2 Mar 2018, 4:56 PM
    Hi Dan,

    This could be a great plugin for my purposes. I've tried it and the e-mail comes nicely about having to repeat the course.

    My question would be about archiving. Does the plugin save the earlier completion data in a new table, or somewhere in an existing table for all completion data? I would really need to retrieve it, but would be great to know from which table I have to write the selection for a report.

    Thanks for your work!
  • Picture of Dan Marsden
    Mon, 5 Mar 2018, 4:42 AM
    @Mariann - the existing version takes a copy of the data from course_completion_crit_compl and course_modules_completion and stores it within new tables attached to the local_recompletion plugin. You can see the structure and names of the tables in the code here:

    Adam has been working on some improvements to this plugin and has filed a pull request that adds some further archiving of data but I haven't been able to review it properly quite yet - hopefully I'll get to that within the next couple of weeks.
  • Picture of Parthiv dave
    Wed, 4 Jul 2018, 3:06 PM
    Does it also delete user's SCORM/Quiz attempts to reset completion data or it doesn't impact them?
  • Picture of Dan Marsden
    Wed, 4 Jul 2018, 5:55 PM
    Yes it deletes the attempts but can store them in archive tables added by the plugin to allow for future reporting/auditing - what I'd like to do though is keep the attempts where possible and give the student the ability to have an extra attempt where supported by the plugin like assignment and quiz.
  • Picture of MAG II
    Fri, 20 Jul 2018, 5:25 AM
    Hello -

    I am struggling to figure out how to write reports that pull from Course Recompletion data via SQL. I am using the Configurable Reports plugin. I am attempting to write a report that shows all students who have / have not completed a course at any time. Does anyone have any suggestions on how I can get started on writing something like this?
  • Picture of Dan Marsden
    Fri, 20 Jul 2018, 5:53 AM
    Hi Drew,

    Best to ask that question in the forums - good luck!
  • Picture of David Collins
    Fri, 27 Jul 2018, 4:34 AM
    Hi, I'm using the Fordson theme on 3.5.1. It changes how Course Admin tasks are organized. There is no gear icon at the top right of the course and I can't seem to find a way to enable recompletion unless I change the them to something else.
  • Picture of Dan Marsden
    Fri, 27 Jul 2018, 5:03 AM
    @David - the recompletion link appears fine in the clean theme navigation and in the boost theme navigation - I've just had a quick look at fordson and it looks like it hard-codes the course admin links and doesn't use the core methods to obtain the list of course settings - this means that any plugins that extend the course navigation will be ignored by fordson. Nothing I can do about this in the recompletion code - you should report this issue to the fordson theme devs.
  • Picture of Olli Savolainen
    Wed, 5 Sep 2018, 4:12 PM
    Hi Dan! Was wondering whether to contact you on skype but perhaps this channel is less intrusive. We have are running Moodle 3.0 - what do you think are the chances of getting this running on that version? I.e. are the Moodle versions mentioned just what you happen to have tested on or are there actual known dependencies on features of those versions of Moodle? Thanks!
  • Picture of Dan Marsden
    Wed, 5 Sep 2018, 5:04 PM
    you could try it, but IMO you would be better spending time on removing the barriers that are preventing you from upgrading to a supported Moodle release. None of my latest work has been backported to the 3.1 version either and some of the new code may not be compatible with PHP 5
  • Picture of Olli Savolainen
    Wed, 5 Sep 2018, 5:21 PM
    Thanks Dan!
    So far I've commented out two calls to nonexisting functions in QuickForms.
    //$mform->hideIf('archivequizdata', 'quizdata', 'noteq', LOCAL_RECOMPLETION_DELETE);
    //$mform->hideIf('archivescormdata', 'scormdata', 'notchecked');
  • Picture of Olli Savolainen
    Thu, 6 Sep 2018, 10:49 PM
    I can confirm that this seems to work on Moodle 3.0 after the above change to source.
  • Picture of Pär Brink
    Wed, 12 Sep 2018, 9:52 PM
    You are THE MAN Dan Marsden! smile
    This is something that we have been struggling with, as we have a number of courses that require recertification.

    This solves 90% of our troubles.
    It would solve 100% of our troubles IF it would also archive the issued certificates! smile

    It would also solve another of our problems if we could use the feature of deleting scorm attempts via a Web Service.
    Is this something that would be doable??
  • Picture of Dan Marsden
    Thu, 13 Sep 2018, 5:58 AM
    @Pär - thanks for the feedback, I'm hoping to catch up properly with Mark Nelson very soon to discuss the best way to support the certificate activities.
    Deleting scorm attempts via webservices is really something that should be added to the webservices code in the SCORM activity - If you're interested in funding that work drop me a private message and I can provide information on our rates.
1 2
Please login to post comments