diff options
author | Zach Copley <zach@status.net> | 2010-09-28 15:56:11 -0700 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-09-28 15:56:11 -0700 |
commit | ab1d8c4c56dcc4eaa799eb662123bb285cc1aea2 (patch) | |
tree | 8ed5436d6b1c42477ab427ce72ddf1dee001b896 | |
parent | 78a711d5566e7bf2347199f034641f44b36f6e09 (diff) |
Add Start/EndShowNoticeItem event hooks to single notice page
-rw-r--r-- | actions/shownotice.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/actions/shownotice.php b/actions/shownotice.php index 86df5f9f3..c8e9cfe66 100644 --- a/actions/shownotice.php +++ b/actions/shownotice.php @@ -314,10 +314,14 @@ class SingleNoticeItem extends NoticeListItem function show() { $this->showStart(); - $this->showNotice(); - $this->showNoticeAttachments(); - $this->showNoticeInfo(); - $this->showNoticeOptions(); + if (Event::handle('StartShowNoticeItem', array($this))) { + $this->showNotice(); + $this->showNoticeAttachments(); + $this->showNoticeInfo(); + $this->showNoticeOptions(); + Event::handle('EndShowNoticeItem', array($this)); + } + $this->showEnd(); } |