]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add Start/EndShowNoticeItem event hooks to single notice page
authorZach Copley <zach@status.net>
Tue, 28 Sep 2010 22:56:11 +0000 (15:56 -0700)
committerZach Copley <zach@status.net>
Wed, 29 Sep 2010 23:35:12 +0000 (16:35 -0700)
actions/shownotice.php

index 86df5f9f30658bdf560ee5be73104e7882639b42..c8e9cfe66a5ceb80d9154239b2d42febeff8879e 100644 (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();
     }