forked from GNUsocial/gnu-social
Events for showing the notice form
This commit is contained in:
parent
8d2ccee3f6
commit
fa45805d6d
@ -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))) {
|
||||
$this->showNoticeForm();
|
||||
Event::handle('EndShowNoticeForm', array($this));
|
||||
}
|
||||
} else {
|
||||
$this->showAnonymousMessage();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user