summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2010-01-21 16:49:49 +0100
committerSarven Capadisli <csarven@status.net>2010-01-21 16:49:49 +0100
commit373206ac0042c37624844fb738ff869fa7190041 (patch)
treef9a2ccea92db0f96fb4afadf226f74c2395c8871 /lib
parentd4fcc8777f5655d0be678075a9bc38e8c02afbc8 (diff)
Event hooks for before and after site_notice
Diffstat (limited to 'lib')
-rw-r--r--lib/action.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/action.php b/lib/action.php
index e9207a66a..e24277558 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -369,7 +369,11 @@ class Action extends HTMLOutputter // lawsuit
$this->elementStart('div', array('id' => 'header'));
$this->showLogo();
$this->showPrimaryNav();
- $this->showSiteNotice();
+ if (Event::handle('StartShowSiteNotice', array($this))) {
+ $this->showSiteNotice();
+
+ Event::handle('EndShowSiteNotice', array($this));
+ }
if (common_logged_in()) {
$this->showNoticeForm();
} else {