]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Events for showing the notice form
authorEvan Prodromou <evan@status.net>
Thu, 7 Oct 2010 14:22:57 +0000 (10:22 -0400)
committerEvan Prodromou <evan@status.net>
Thu, 7 Oct 2010 14:22:57 +0000 (10:22 -0400)
EVENTS.txt
lib/action.php

index 24964161737e3845740620729a46b060ea75d5c6..e5cafa857378400d380a45d1e83605f2e47c31fe 100644 (file)
@@ -1136,3 +1136,9 @@ StartShowFeedLink: before showing an individual feed item
 EndShowFeedLink: after showing an individual feed
 - $action: action being executed
 - $feed: feed to show
+
+StartShowNoticeForm: before showing the notice form (before <form>)
+- $action: action being executed
+
+EndShowNoticeForm: after showing the notice form (after <form>)
+- $action: action being executed
index ddc058d4185979e8042b1b1dd25f7601f28da37a..008f29d03e61e4ba61071e4de8ed36e0066ce3ee 100644 (file)
@@ -397,7 +397,10 @@ class Action extends HTMLOutputter // lawsuit
             Event::handle('EndShowSiteNotice', array($this));
         }
         if (common_logged_in()) {
-            $this->showNoticeForm();
+            if (Event::handle('StartShowNoticeForm', array($this))) {
+                $this->showNoticeForm();
+                Event::handle('EndShowNoticeForm', array($this));
+            }
         } else {
             $this->showAnonymousMessage();
         }