From 88e6a4f27638db93e9ca8ca28ea1710343c34701 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Tue, 14 Nov 2006 23:08:25 +0100 Subject: HTML_EDITFORM_INJECTION event added A simple event to inject additional HTML into the editform. This probably needs to be improved. darcs-hash:20061114220825-7ad00-ce868b8d8a25f5120c49dc018b8fd1024aff6e12.gz --- inc/auth.php | 1 + inc/html.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/inc/auth.php b/inc/auth.php index 07f335627..bedc3877e 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -73,6 +73,7 @@ } //load ACL into a global array + global $AUTH_ACL; if(is_readable(DOKU_CONF.'acl.auth.php')){ $AUTH_ACL = file(DOKU_CONF.'acl.auth.php'); }else{ diff --git a/inc/html.php b/inc/html.php index f2ceceddd..8fb516598 100644 --- a/inc/html.php +++ b/inc/html.php @@ -1117,6 +1117,11 @@ function html_edit($text=null,$include='edit'){ //FIXME: include needed? + $wr); + trigger_event('HTML_EDITFORM_INJECTION', $evdata); + ?> +
-- cgit v1.2.3