I created a data repository using the Moodle data activity.
I have a lot of documents in there.
People access the database and read the documents.
I need to have a count for each document telling how many times was readed.
I did one hack in order to send the link to the document first to one script where I add 1(one) to a database field I added named veces_visto.
It was working good in previous Moodle versions, but now I cant find where is armed the line with the link to install here my hack.
I think it is in /mod/data/view.php or lib.php but I can find where.
Can anybody help me a little.