[dokuwiki] Re: events system patch
- From: "Martin Tschofen" <martin.tschofen@xxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Mon, 24 Apr 2006 20:50:19 -0500
On 4/24/06, Chris Smith <chris@xxxxxxxxxxxxx> wrote:
> There are changes to event names, function parameters and parameter
> order. These will mean you will need to make modifications to your code
> after applying the patch.
No big deal (I think). Based on your instructions, the old:
$controller->register_hook('ACTION_DISPATCH', $this, 'collect', NULL);
turns into:
$controller->register_hook('ACTION_ACT_PREPROCESS', 'BEFORE',
$this, 'collect');
Seems to work just fine. I have to agree though, it would be nice if
we didn't have to specify the advice action.
How come you didn't want to label each event with STARTED and END like
the DOKUWIKI event itself. Otherwise if you follow the new
nomenclature shouldn't it be DOKUWIKI with advise "BEFORE" and
"AFTER"?
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- Follow-Ups:
- [dokuwiki] Re: events system patch
- From: Chris Smith
- References:
- [dokuwiki] events system patch
- From: Chris Smith
Other related posts:
- » [dokuwiki] events system patch
- » [dokuwiki] Re: events system patch
- » [dokuwiki] Re: events system patch
- » [dokuwiki] Re: events system patch
- » [dokuwiki] Re: events system patch
- » [dokuwiki] Re: events system patch
- [dokuwiki] Re: events system patch
- From: Chris Smith
- [dokuwiki] events system patch
- From: Chris Smith