From: Zach Copley Date: Tue, 28 Sep 2010 22:56:11 +0000 (-0700) Subject: Add Start/EndShowNoticeItem event hooks to single notice page X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ab1d8c4c56dcc4eaa799eb662123bb285cc1aea2;p=quix0rs-gnu-social.git Add Start/EndShowNoticeItem event hooks to single notice page --- diff --git a/actions/shownotice.php b/actions/shownotice.php index 86df5f9f30..c8e9cfe66a 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(); }