summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchris <chris@jalakai.co.uk>2006-07-24 21:34:34 +0200
committerchris <chris@jalakai.co.uk>2006-07-24 21:34:34 +0200
commit677844af03a8b221f7b0e27248dc730392ba832a (patch)
tree4507d0117cb673f1718e87abc1245d4518a92a06
parent5cfb88156f790ba8677badc88863a85569149942 (diff)
downloadrpg-677844af03a8b221f7b0e27248dc730392ba832a.tar.gz
rpg-677844af03a8b221f7b0e27248dc730392ba832a.tar.bz2
additional events
PARSER_WIKITEXT_PREPROCESS RENDERER_CONTENT_POSTPROCESS Both have been implemented as signals, that is without any action and therefore there will be no results during the _AFTER event darcs-hash:20060724193434-9b6ab-e48d13d06da55122e501a686f9b841f7b3c97dfe.gz
-rw-r--r--inc/parserutils.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/inc/parserutils.php b/inc/parserutils.php
index dc6fe4fb9..77ef842ab 100644
--- a/inc/parserutils.php
+++ b/inc/parserutils.php
@@ -228,7 +228,8 @@ function p_get_instructions($text){
}
// Do the parsing
- $p = $Parser->parse($text);
+ trigger_event('PARSER_WIKITEXT_PREPROCESS', $text);
+ $p = $Parser->parse($text);
// dbg($p);
return $p;
}
@@ -472,7 +473,9 @@ function p_render($mode,$instructions,& $info){
//set info array
$info = $Renderer->info;
- // Return the output
+ // Post process and return the output
+ $data = array($mode,& $Renderer->doc);
+ trigger_event('RENDERER_CONTENT_POSTPROCESS',$data);
return $Renderer->doc;
}