I have a database activity with documents, most of them in PDF format and also some links to documents outside my site.
I need to have a method to summarize times each document is viewed.
I added one column to Moodle database table mdl_data_records named times_viewed but I can't
made the hook to know where and how can catch te record access and add 1 to this new field created in order to have reading statistics from my database.
Does anybody can help me ??
Thank you all a lot