]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x
authorSarven Capadisli <csarven@controlyourself.ca>
Fri, 20 Feb 2009 23:47:40 +0000 (23:47 +0000)
committerSarven Capadisli <csarven@controlyourself.ca>
Fri, 20 Feb 2009 23:47:40 +0000 (23:47 +0000)
EVENTS.txt
lib/action.php

index af0bee587c1be7dc32eaa514ceac66848b494765..37e2203d50eb5ac8c9112626bacf0ba1cc35d411 100644 (file)
@@ -82,3 +82,9 @@ StartNoticeSave: before inserting a notice (good place for content filters)
 EndNoticeSave: after inserting a notice and related code
 - $notice: notice that was saved (with ID and URI)
 
+StartShowLocalNavBlock: Showing the local nav menu
+- $action: the current action
+
+EndShowLocalNavBlock: At the end of the local nav menu
+- $action: the current action
+
index b1e700b6709dc386390639eac5e680338b12a6e3..a468c638cd59aba805330352e672451fe568d66a 100644 (file)
@@ -474,7 +474,10 @@ class Action extends HTMLOutputter // lawsuit
     function showCore()
     {
         $this->elementStart('div', array('id' => 'core'));
-        $this->showLocalNavBlock();
+        if (Event::handle('StartShowLocalNavBlock', array($this))) {
+            $this->showLocalNavBlock();
+            Event::handle('EndShowLocalNavBlock', array($this));
+        }
         if (Event::handle('StartShowContentBlock', array($this))) {
             $this->showContentBlock();
             Event::handle('EndShowContentBlock', array($this));