Can I use an Observer to trigger changes in a block while a user does an activity?

Can I use an Observer to trigger changes in a block while a user does an activity?

by Ryan Carpenter -
Number of replies: 0

I'm new to Moodle, so I'm still trying to figure out the capabilities of observers.  I have a block that is displayed for students on every activity (mod) page.  Right now, I just want to log activities that occur within the block's content (though I'd add more complex behavior later).

I'm particularly interested in logging when the student user finishes the activity, answers a question, or skips to the next slide.  I'm mainly working with SCORM modules, if that's a factor.

Is what I'm describing possible?  If I can't update the block's content, could I save the log to an external database and access it later?  Thanks in advance!

Average of ratings: -