[ewiki] Re: reworked plugin hooks [init]

> 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

Other related posts: