From 883bc121fd88d965cac7d206572f272b3e15ff51 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 15 Sep 2006 22:23:21 +0200 Subject: HTML_EDIT_PAGETEMPLATE event added darcs-hash:20060915202321-7ad00-2f3440a36d7a41604c1cbfbc9633c898c7b9ff0e.gz --- inc/html.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/inc/html.php b/inc/html.php index 4a56072e1..320bfcf67 100644 --- a/inc/html.php +++ b/inc/html.php @@ -1012,8 +1012,9 @@ function html_updateprofile(){ /** * This displays the edit form (lots of logic included) * - * @fixme this is a huge lump of code and should be modularized - * @author Andreas Gohr + * @fixme this is a huge lump of code and should be modularized + * @triggers HTML_EDIT_PAGETEMPLATE + * @author Andreas Gohr */ function html_edit($text=null,$include='edit'){ //FIXME: include needed? global $ID; @@ -1047,7 +1048,7 @@ function html_edit($text=null,$include='edit'){ //FIXME: include needed? } }else{ //try to load a pagetemplate - $text = pageTemplate($ID); + $text = trigger_event('HTML_EDIT_PAGETEMPLATE',array($ID),'pageTemplate',true); } }else{ $pr = true; //preview mode -- cgit v1.2.3