summaryrefslogtreecommitdiff
path: root/lib/noticelist.php
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-09-25 12:47:14 +0000
committerSarven Capadisli <csarven@status.net>2009-09-25 12:47:14 +0000
commitd3d9913be062c974e3ae721c0cbf5c5ad2cbfce8 (patch)
tree39696600bb73d06cb8589775075ccbf8b5dd261a /lib/noticelist.php
parentb617c608ea0d66451eb2dcd75e1e1c58c179d8e6 (diff)
Added hook for notice item. After <li> and Before </li>. Allows
authors to include aside data to their notice items
Diffstat (limited to 'lib/noticelist.php')
-rw-r--r--lib/noticelist.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php
index d4cd3ff6e..c2ff7c26b 100644
--- a/lib/noticelist.php
+++ b/lib/noticelist.php
@@ -178,9 +178,12 @@ class NoticeListItem extends Widget
function show()
{
$this->showStart();
- $this->showNotice();
- $this->showNoticeInfo();
- $this->showNoticeOptions();
+ if (Event::handle('StartShowNoticeItem', array($this))) {
+ $this->showNotice();
+ $this->showNoticeInfo();
+ $this->showNoticeOptions();
+ Event::handle('EndShowNoticeItem', array($this));
+ }
$this->showEnd();
}