summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-10-01 12:27:02 +0000
committerSarven Capadisli <csarven@status.net>2009-10-01 12:27:02 +0000
commitacc78972383c2346b5729192ab00c90c48c5b2a6 (patch)
treef749d7e1a2b72e44c690a71a3e28f116b36e5852
parentcc776478e2ea8fc861fd3b4e8e878f7d6020c34e (diff)
Added hook for Aside container
-rw-r--r--EVENTS.txt6
-rw-r--r--lib/action.php5
2 files changed, 10 insertions, 1 deletions
diff --git a/EVENTS.txt b/EVENTS.txt
index 74923dcc0..e0d4bbd06 100644
--- a/EVENTS.txt
+++ b/EVENTS.txt
@@ -87,6 +87,12 @@ StartShowContentBlock: Showing before the content container
EndShowContentBlock: Showing after the content container
- $action: the current action
+StartShowAside: Showing before the Aside container
+- $action: the current action
+
+EndShowAside: Showing after the Aside container
+- $action: the current action
+
StartNoticeSave: before inserting a notice (good place for content filters)
- $notice: notice being saved (no ID or URI)
diff --git a/lib/action.php b/lib/action.php
index 02793f069..71ceffe20 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -525,7 +525,10 @@ class Action extends HTMLOutputter // lawsuit
$this->showContentBlock();
Event::handle('EndShowContentBlock', array($this));
}
- $this->showAside();
+ if (Event::handle('StartShowAside', array($this))) {
+ $this->showAside();
+ Event::handle('EndShowAside', array($this));
+ }
$this->elementEnd('div');
}