]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add a hook for showing sidebar sections
authorEvan Prodromou <evan@controlyourself.ca>
Mon, 9 Feb 2009 21:56:38 +0000 (16:56 -0500)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 9 Feb 2009 21:56:38 +0000 (16:56 -0500)
EVENTS.txt
lib/action.php

index 4b8260b3ced271a937e3b7bd62a4afb8d6d71311..d9634325dbb73701b6542fae5a163f262364be72 100644 (file)
@@ -34,3 +34,8 @@ StartShowLaconicaScripts: Showing Laconica script links (use this to link to a C
 EndShowLaconicaScripts: End showing Laconica script links
 - $action: the current action
 
+StartShowSections: Start the list of sections in the sidebar
+- $action: the current action
+
+EndShowSections: End the list of sections in the sidebar
+- $action: the current action
index 0628dc70db340f1c6457a340e96a71d905661a43..ce92addf5c1305424525604726b358b6ebb11b85 100644 (file)
@@ -524,12 +524,16 @@ class Action extends HTMLOutputter // lawsuit
      *
      * @return nothing
      */
+
     function showAside()
     {
         $this->elementStart('div', array('id' => 'aside_primary',
                                          'class' => 'aside'));
         $this->showExportData();
-        $this->showSections();
+        if (Event::handle('StartShowSections', array($this))) {
+            $this->showSections();
+            Event::handle('EndShowSections', array($this));
+        }
         $this->elementEnd('div');
     }