Hi, I could call the function from layout.html but it is a plugin and it should work standalone.
Some background - in case I'm on the wrong track or PluginManager is about to handle it. The site I am working on consists mainly of plugins (I'm inflicted with raving mad plugin fever), some of which depend on others. Now, rather than trying to prefix plugin names with digits to sequence load order V init style I have one plugin that loads first and all other plugins register with it by providing their name, the names of any plugins they depend on and a callback that is triggered once the dependencies are met. This works, although I am not sure how efficiently, but it's fun. The problem is that if a dependency is never met, the callback is never triggered. In this case I'd like to raise some Error. As far as I can see, this would have to happen as the very last thing. Regards, HC