Commit fa45805d authored by Evan Prodromou's avatar Evan Prodromou

Events for showing the notice form

parent 8d2ccee3
......@@ -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
......@@ -397,7 +397,10 @@ class Action extends HTMLOutputter // lawsuit
Event::handle('EndShowSiteNotice', array($this));
if (common_logged_in()) {
if (Event::handle('StartShowNoticeForm', array($this))) {
Event::handle('EndShowNoticeForm', array($this));
} else {
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment