3

I'm working on a module to log some statistics on downloads from anywhere in the site. My module setup is fine, it installs and creates the necessary tables. Now I want to hook into the events, file downloads in particular and log this data to my new tables.

Are there any hooks exposed that I can use to see when this happens? It crossed my mind to try and intercept the event with javascript and log it asynchronously. But I am hoping there is a hook I can use instead. I haven't been able to find one though.

Any suggestions please?

2

No, there isn't any hook for it. You might see this question/answer Track logged-in user events which seems much similar to your need.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.