diff options
author | Zach Copley <zach@status.net> | 2010-09-28 15:56:11 -0700 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-09-29 16:35:12 -0700 |
commit | fd779009b8636399472d74e86531ba9bc86cfb59 (patch) | |
tree | 4d93b8280519ebfb7cb4655c60d74d81f6524f1e /actions | |
parent | 3960c9ad39d96cdfef390065f15f9f0fc280f37c (diff) |
Add Start/EndShowNoticeItem event hooks to single notice page
Diffstat (limited to 'actions')
-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(); } |