From e0ad864eb89c0c6918830e0086c9198826eb8421 Mon Sep 17 00:00:00 2001 From: chris <chris@jalakai.co.uk> Date: Fri, 14 Apr 2006 22:11:01 +0200 Subject: [PATCH] event HANDLER_FINALISED This event is advisory only. Event data is the handler object. There is no default action to prevent. The event is signalled by the handler during its finalisation of the instruction list. At the time of signalling the instruction list is complete except for three instrucitons, meta, document_start & document_end. Syntax plugins could register for this event to finalise processing of their data knowing it is complete, e.g. an alternate footnote plugin. darcs-hash:20060414201101-9b6ab-eba2d096ed3b82e1ec6b24ee90caaa9849f16093.gz --- inc/parser/handler.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/parser/handler.php b/inc/parser/handler.php index 7a8fc9bc2..a5a79c2ae 100644 --- a/inc/parser/handler.php +++ b/inc/parser/handler.php @@ -39,6 +39,9 @@ class Doku_Handler { $B = & new Doku_Handler_Block(); $this->calls = $B->process($this->calls); } + + $evt = new event('HANDLER_FINALISED',$this); + $evt->advise(); array_unshift($this->calls,array('document_start',array(),0)); array_unshift($this->calls,array('meta',array($this->meta),0)); -- GitLab