Skip to content
Snippets Groups Projects
Commit 677844af authored by chris's avatar chris
Browse files

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
parent 5cfb8815
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment