From 331502a9790806ca48e61eb94d9489ddf7baeb55 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Wed, 29 Sep 2010 12:49:26 -0700 Subject: Add Start/EndShowNoticeInfo events --- lib/noticelist.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/noticelist.php b/lib/noticelist.php index cc460005a..df1533980 100644 --- a/lib/noticelist.php +++ b/lib/noticelist.php @@ -226,11 +226,15 @@ class NoticeListItem extends Widget function showNoticeInfo() { $this->out->elementStart('div', 'entry-content'); - $this->showNoticeLink(); - $this->showNoticeSource(); - $this->showNoticeLocation(); - $this->showContext(); - $this->showRepeat(); + if (Event::handle('StartShowNoticeInfo', array($this))) { + $this->showNoticeLink(); + $this->showNoticeSource(); + $this->showNoticeLocation(); + $this->showContext(); + $this->showRepeat(); + Event::handle('EndShowNoticeInfo', array($this)); + } + $this->out->elementEnd('div'); } -- cgit v1.2.3-54-g00ecf