Thanks for the tips - this code was only for my uni because it has a very specific use-case but you're probably right, I should familiarise myself with the coding style used by Moodle in case I ever want to contribute a plugin. I've taken a read through the Coding Styles documentation now and fixed a few of my other 'transgressions'
General developer forum
MOODLE_INTERNAL is not defined
This discussion has been locked so you can no longer reply to it.