Added before and after event hooks for subscriptions content

This commit is contained in:
Sarven Capadisli 2010-02-22 17:03:28 +01:00
parent f54c9b70db
commit 8ccc9e2c38
2 changed files with 32 additions and 21 deletions

View File

@ -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

View File

@ -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()