Added event hook for before and after personal timeline content
This commit is contained in:
parent
623faf9f2d
commit
350e1289af
|
@ -770,6 +770,12 @@ StartShowSubscriptionsContent: before showing the subscriptions content
|
||||||
EndShowSubscriptionsContent: after showing the subscriptions content
|
EndShowSubscriptionsContent: after showing the subscriptions content
|
||||||
- $action: the current action
|
- $action: the current action
|
||||||
|
|
||||||
|
StartShowAllContent: before showing the all (you and friends) content
|
||||||
|
- $action: the current action
|
||||||
|
|
||||||
|
EndShowAllContent: after showing the all (you and friends) content
|
||||||
|
- $action: the current action
|
||||||
|
|
||||||
StartDeleteUserForm: starting the data in the form for deleting a user
|
StartDeleteUserForm: starting the data in the form for deleting a user
|
||||||
- $action: action being shown
|
- $action: action being shown
|
||||||
- $user: user being deleted
|
- $user: user being deleted
|
||||||
|
|
|
@ -144,6 +144,7 @@ class AllAction extends ProfileAction
|
||||||
|
|
||||||
function showContent()
|
function showContent()
|
||||||
{
|
{
|
||||||
|
if (Event::handle('StartShowAllContent', array($this))) {
|
||||||
$nl = new NoticeList($this->notice, $this);
|
$nl = new NoticeList($this->notice, $this);
|
||||||
|
|
||||||
$cnt = $nl->show();
|
$cnt = $nl->show();
|
||||||
|
@ -156,6 +157,9 @@ class AllAction extends ProfileAction
|
||||||
$this->page > 1, $cnt > NOTICES_PER_PAGE,
|
$this->page > 1, $cnt > NOTICES_PER_PAGE,
|
||||||
$this->page, 'all', array('nickname' => $this->user->nickname)
|
$this->page, 'all', array('nickname' => $this->user->nickname)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Event::handle('EndShowAllContent', array($this));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function showPageTitle()
|
function showPageTitle()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user