summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-09-29 12:49:26 -0700
committerZach Copley <zach@status.net>2010-09-29 16:35:13 -0700
commit331502a9790806ca48e61eb94d9489ddf7baeb55 (patch)
treed07648a34f333665fc6da871538e0d6827013a55 /lib
parent73297d374974a431b40d0cc45a7180613b8d5762 (diff)
Add Start/EndShowNoticeInfo events
Diffstat (limited to 'lib')
-rw-r--r--lib/noticelist.php14
1 files changed, 9 insertions, 5 deletions
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');
}