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
|
EndShowFeedLink: after showing an individual feed
|
||||||
- $action: action being executed
|
- $action: action being executed
|
||||||
- $feed: feed to show
|
- $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));
|
Event::handle('EndShowSiteNotice', array($this));
|
||||||
}
|
}
|
||||||
if (common_logged_in()) {
|
if (common_logged_in()) {
|
||||||
|
if (Event::handle('StartShowNoticeForm', array($this))) {
|
||||||
$this->showNoticeForm();
|
$this->showNoticeForm();
|
||||||
|
Event::handle('EndShowNoticeForm', array($this));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->showAnonymousMessage();
|
$this->showAnonymousMessage();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user