[ewiki] Re: reworked plugin hooks [init]
- From: Mario Salzer <mario@xxxxxxxxxxxxx>
- To: ewiki@xxxxxxxxxxxxx
- Date: Thu, 25 Mar 2004 02:08:34 +0100
> Still looking at this change. It looks like the page_init plugins need
> to have a signature change from pf($id,$data,$action) to pf($id) since
> $data is not available at their new location and $action is still
> 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?
The changed function call signature is probably not a big problem (there
is yet no $data or $id, because "init" plugins could as well switch the
database layer or rewrite the $_REQUEST[] environment).
But if there's still the need for another kind of run_once plugins, then
we could of course re-add such a hook; feel free to add a new hook,
where and how you see fit. (I'll finish the removal of ["page_init"]
registrations until tomorrow.)
mario
- References:
- [ewiki] new .xpi plugins, reworked plugin hooks [init] and _TEXT check
- From: Mario Salzer
- [ewiki] Re: reworked plugin hooks [init]
- From: Andy Fundinger
Other related posts:
- » [ewiki] Re: reworked plugin hooks [init]
- » [ewiki] Re: reworked plugin hooks [init]
- » [ewiki] Re: reworked plugin hooks [init]
- » [ewiki] Re: reworked plugin hooks [init]
- » [ewiki] Re: reworked plugin hooks [init]
- [ewiki] new .xpi plugins, reworked plugin hooks [init] and _TEXT check
- From: Mario Salzer
- [ewiki] Re: reworked plugin hooks [init]
- From: Andy Fundinger