Add Start/EndShowNoticeItem event hooks to single notice page

This commit is contained in:
Zach Copley 2010-09-28 15:56:11 -07:00
parent 78a711d556
commit ab1d8c4c56

View File

@ -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();
}