diff options
author | Sarven Capadisli <csarven@status.net> | 2010-01-21 16:49:49 +0100 |
---|---|---|
committer | Sarven Capadisli <csarven@status.net> | 2010-01-24 00:14:19 +0100 |
commit | 51fdba09d4bdc2b933e40c9ea5ea6de76c4aa799 (patch) | |
tree | 960fb35cc4983dfb479af8633e5afc720502699a /lib | |
parent | a4d733b68dad7f70857309b7da8e95cb164da746 (diff) |
Event hooks for before and after site_notice
Diffstat (limited to 'lib')
-rw-r--r-- | lib/action.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/action.php b/lib/action.php index 171bea17c..22425e682 100644 --- a/lib/action.php +++ b/lib/action.php @@ -373,7 +373,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 { |