[dokuwiki] Re: events system patch

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

Other related posts: