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),
|
||||
'title' (title of the link), 'position' (position of the text to
|
||||
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()
|
||||
{
|
||||
if (Event::handle('StartShowSubscriptionsContent', array($this))) {
|
||||
parent::showContent();
|
||||
|
||||
$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->page, 'subscriptions',
|
||||
array('nickname' => $this->user->nickname));
|
||||
|
||||
|
||||
Event::handle('EndShowSubscriptionsContent', array($this));
|
||||
}
|
||||
}
|
||||
|
||||
function showScripts()
|
||||
|
|
Loading…
Reference in New Issue
Block a user