HI!
I created a data repository using the Moodle database activity.
I am using Moodle 2.7.20
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 built the line with the link, in order 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.
Thank you