diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-04-28 23:38:51 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-04-28 23:38:51 +0200 |
commit | 8a48981015114fbf1194d3d1ca0de465a279b3a9 (patch) | |
tree | 44aeb4e50b8e8ca64be2565e98d7ac94102bb4d2 | |
parent | c059e1a67e8b73daaae0f6fb00aee1a350a1d2cb (diff) | |
download | rpg-8a48981015114fbf1194d3d1ca0de465a279b3a9.tar.gz rpg-8a48981015114fbf1194d3d1ca0de465a279b3a9.tar.bz2 |
removed left over event testing code from main template
darcs-hash:20060428213851-7ad00-2aebcece3effc9315645cf3164c83f2631a7f2a2.gz
-rw-r--r-- | lib/tpl/default/main.php | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/tpl/default/main.php b/lib/tpl/default/main.php index b0034c7e3..a63831ae4 100644 --- a/lib/tpl/default/main.php +++ b/lib/tpl/default/main.php @@ -13,26 +13,6 @@ * @link http://wiki.splitbrain.org/wiki:tpl:templates * @author Andreas Gohr <andi@splitbrain.org> */ - -/* event testing ...*/ - -function hello($data) { print $data; return strrev($data); }; -function hook($param, &$event) { - print('this is a hook ['.$param.']'); - switch ($param) { - case 'param1' : $event->preventDefault(); break; - case 'param2' : $event->stopPropagation(); break; - case 'param3' : print('action results['.$event->result.']'); - } -} - -global $EVENT_HANDLER; -$EVENT_HANDLER->register_hook('TEMPLATE','BEFORE',$tmp=NULL,hook,'param2'); -$EVENT_HANDLER->register_hook('TEMPLATE','AFTER',$tmp=NULL,hook,'param3'); - -trigger_event('TEMPLATE',$tmp2='hello!',hello); -#*/ - ?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction']?>"> |