Added before and after event hooks for subscriptions content
This commit is contained in:
parent
f54c9b70db
commit
8ccc9e2c38
|
@ -763,3 +763,9 @@ EndFindMentions: end finding mentions in a block of text
|
||||||
has 'mentioned' (array of mentioned profiles), 'url' (url to link as),
|
has 'mentioned' (array of mentioned profiles), 'url' (url to link as),
|
||||||
'title' (title of the link), 'position' (position of the text to
|
'title' (title of the link), 'position' (position of the text to
|
||||||
replace), 'text' (text to replace)
|
replace), 'text' (text to replace)
|
||||||
|
|
||||||
|
StartShowSubscriptionsContent: before showing the subscriptions content
|
||||||
|
- $action: the current action
|
||||||
|
|
||||||
|
EndShowSubscriptionsContent: after showing the subscriptions content
|
||||||
|
- $action: the current action
|
||||||
|
|
|
@ -79,6 +79,7 @@ class SubscriptionsAction extends GalleryAction
|
||||||
|
|
||||||
function showContent()
|
function showContent()
|
||||||
{
|
{
|
||||||
|
if (Event::handle('StartShowSubscriptionsContent', array($this))) {
|
||||||
parent::showContent();
|
parent::showContent();
|
||||||
|
|
||||||
$offset = ($this->page-1) * PROFILES_PER_PAGE;
|
$offset = ($this->page-1) * PROFILES_PER_PAGE;
|
||||||
|
@ -105,6 +106,10 @@ class SubscriptionsAction extends GalleryAction
|
||||||
$this->pagination($this->page > 1, $cnt > PROFILES_PER_PAGE,
|
$this->pagination($this->page > 1, $cnt > PROFILES_PER_PAGE,
|
||||||
$this->page, 'subscriptions',
|
$this->page, 'subscriptions',
|
||||||
array('nickname' => $this->user->nickname));
|
array('nickname' => $this->user->nickname));
|
||||||
|
|
||||||
|
|
||||||
|
Event::handle('EndShowSubscriptionsContent', array($this));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function showScripts()
|
function showScripts()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user