From 7dee3468166de1bcaaf6062abb2ad20fedcea47c Mon Sep 17 00:00:00 2001 From: Gina Haeussge Date: Sat, 30 Aug 2008 21:20:33 +0200 Subject: New event TPL_TOC_RENDER This new event is triggered directly before rendering the TOC. An array containing the current TOC items is given as eventdata and can be modified by action plugins to e.g. add additional items to the TOC. darcs-hash:20080830192033-2b4f5-29611563677679f5bfc0d030019e23d7e9a6bcf5.gz --- inc/template.php | 1 + 1 file changed, 1 insertion(+) (limited to 'inc') diff --git a/inc/template.php b/inc/template.php index 9a874530d..5997e0d33 100644 --- a/inc/template.php +++ b/inc/template.php @@ -181,6 +181,7 @@ function tpl_toc($return=false){ } } + trigger_event('TPL_TOC_RENDER', $toc, NULL, false); $html = html_TOC($toc); if($return) return $html; echo $html; -- cgit v1.2.3