diff options
author | Evan Prodromou <evan@status.net> | 2010-10-07 10:22:57 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-10-07 10:22:57 -0400 |
commit | fa45805d6d7f42884b507361ba51028c5180f384 (patch) | |
tree | 267bab80fc71b957a4a3923285e260451fe9bed9 /lib/action.php | |
parent | 8d2ccee3f62b06c4b8eb6fc15dd5a74d4211643d (diff) |
Events for showing the notice form
Diffstat (limited to 'lib/action.php')
-rw-r--r-- | lib/action.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/action.php b/lib/action.php index ddc058d41..008f29d03 100644 --- a/lib/action.php +++ b/lib/action.php @@ -397,7 +397,10 @@ class Action extends HTMLOutputter // lawsuit Event::handle('EndShowSiteNotice', array($this)); } if (common_logged_in()) { - $this->showNoticeForm(); + if (Event::handle('StartShowNoticeForm', array($this))) { + $this->showNoticeForm(); + Event::handle('EndShowNoticeForm', array($this)); + } } else { $this->showAnonymousMessage(); } |