summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-09-15 22:23:21 +0200
committerAndreas Gohr <andi@splitbrain.org>2006-09-15 22:23:21 +0200
commit883bc121fd88d965cac7d206572f272b3e15ff51 (patch)
treed7ee0a3fc4bd73396321325989e54f788d37f712 /inc/html.php
parent3cb0d4e1225783076fef2fce4427aed0aca16213 (diff)
downloadrpg-883bc121fd88d965cac7d206572f272b3e15ff51.tar.gz
rpg-883bc121fd88d965cac7d206572f272b3e15ff51.tar.bz2
HTML_EDIT_PAGETEMPLATE event added
darcs-hash:20060915202321-7ad00-2f3440a36d7a41604c1cbfbc9633c898c7b9ff0e.gz
Diffstat (limited to 'inc/html.php')
-rw-r--r--inc/html.php7
1 files 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 <andi@splitbrain.org>
+ * @fixme this is a huge lump of code and should be modularized
+ * @triggers HTML_EDIT_PAGETEMPLATE
+ * @author Andreas Gohr <andi@splitbrain.org>
*/
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