PDA

View Full Version : Plugin: Multiple Hooks?


Disasterpiece
04-19-2011, 11:21 AM
Quick question:

Let's say I have a plugin which should work with 2 different hooks, code is the same.
Since duplicating the code would be redundant, is there a possibility to tell the plugin that it should work with hook1 and hook2 ?

Boofo
04-19-2011, 11:26 AM
Not that I have ever found.

Disasterpiece
04-19-2011, 12:11 PM
OK thanks.

Would be a nice addition for further vb versions, copying and maintaining redundant code in 4+ different plugins is nasty :P

Boofo
04-19-2011, 01:07 PM
I have run into the same code in 2 hooks so far. Yes, it would be nice, but I wouldn't get my hopes up on them doing anything about it.