]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Hook for setting document content type, charset, language, DOCTYPE and
authorSarven Capadisli <csarven@controlyourself.ca>
Thu, 26 Feb 2009 19:56:31 +0000 (19:56 +0000)
committerSarven Capadisli <csarven@controlyourself.ca>
Thu, 26 Feb 2009 19:56:31 +0000 (19:56 +0000)
html element properties

EVENTS.txt
lib/action.php

index 37e2203d50eb5ac8c9112626bacf0ba1cc35d411..ed461ee9fefd42a173e13242946c58bc2334e017 100644 (file)
@@ -88,3 +88,9 @@ StartShowLocalNavBlock: Showing the local nav menu
 EndShowLocalNavBlock: At the end of the local nav menu
 - $action: the current action
 
+StartShowHTML: Chance to set document content type, charset, language, DOCTYPE and html element properties
+- $action: the current action
+
+EndShowHTML: Showing after the html element
+- $action: the current action
+
index dd7dd44e7f1f13129fa3cb12d0d2f4492e067383..9c71a153dd98cc124b88bcc0e68d4e1d8990b96f 100644 (file)
@@ -93,7 +93,10 @@ class Action extends HTMLOutputter // lawsuit
      */
     function showPage()
     {
-        $this->startHTML();
+        if (Event::handle('StartShowHTML', array($this))) {
+            $this->startHTML();
+            Event::handle('EndShowHTML', array($this));
+        }
         $this->showHead();
         $this->showBody();
         $this->endHTML();