[ewiki] Re: reworked plugin hooks [init]

On Thu, 2004-03-25 at 08:35, Mario Salzer wrote:
> Andy wrote:
> > subject to modification by the EWIKI_AUTO_EDIT code.  This is ok but I
> > will have to move my piclogocntrl init plugin to become a self-unsetting
> > handler since it uses meta data.  What was the purpose of this change?
> 
> I've changed the ["handler"] call to pass a fourth parameter (should
> be ignored by other plugins) with the assigned array $index. This will
> allow ["handler"] plugins to deregister themselves easily (and saves
> us another plugin hook):
> 
>   unset($ewiki_plugins["handler"][$param4]):

Looks good, I updated the piclogo control to handle this internally and
it is an example plugin in any event.  Now that I see what you're upto
this looks like a good course to me.


Other related posts: