I am currently working on the module facetoface to be able to use "Restrict access" -> "Activity completion condition" in the setting of the module. My idea was to:
1- Enable the Completion tracking "Show activity as complete when conditions are met " for facetoface to unlock the conditions "Require view" and "Require grade".
2- Create a third condition call "Session is over" which, if enable, will consider the course module for the current user as complete IF the current user is still signup for a session with the status "session over"
3- implement the condition "session is over" in the module facetoface and in moodle.
For now it is working, I based the condition "session is over" on the condition "require view" and now every time the course page is view the condition check if the current user is still signup for a session over. I had to modify many things, I explain all the modifications I had to make in the .txt document.
I am still working on to try a maximum to not modify the moodle code but the facetoface code instead, I would be very happy to have your opinion or your ideas to improve what I have done so far.
Also i create a php file : Session_over.php to put at the root of facetoface.I wanted to give you the modified php files but when I create this discussion I couldnt upload more than 100kb.