by asmecher » Wed Sep 19, 2012 7:58 am
Hi Horscht,
It sounds like you're on the right track. When you say that the hook gets unregistered, do you mean that it's just never called when you expect it to be? I tend to debug by dropping "echo" or "die" statements in -- there are two places to start with this. One is in your plugin registration function, where you register for the hook, to make sure it's getting registered before the article update is called. If that looks OK, the next place is perhaps in DAO.inc.php where you expect the hook to be called -- it sounds like you've already tried dumping the hook name there. A third is in the HookRegistry::call function to list out hooks when they're called. If this doesn't make sense, or you've already tried this, let me know and I'll walk you through more.
Regards,
Alec Smecher
Public Knowledge Project Team