add hooks for subgroupnav showing

This commit is contained in:
Evan Prodromou 2009-05-15 14:22:49 -04:00
parent c6816c163e
commit 14662354dc
2 changed files with 43 additions and 31 deletions

View File

@ -100,6 +100,12 @@ StartPublicGroupNav: Showing the public group nav menu
EndPublicGroupNav: At the end of the public group nav menu
- $action: the current action
StartSubGroupNav: Showing the subscriptions group nav menu
- $action: the current action
EndSubGroupNav: At the end of the subscriptions group nav menu
- $action: the current action
RouterInitialized: After the router instance has been initialized
- $m: the Net_URL_Mapper that has just been set up

View File

@ -74,6 +74,8 @@ class SubGroupNav extends Widget
$this->out->elementStart('ul', array('class' => 'nav'));
if (Event::handle('StartSubGroupNav', array($this))) {
$this->out->menuItem(common_local_url('subscriptions',
array('nickname' =>
$this->user->nickname)),
@ -106,6 +108,10 @@ class SubGroupNav extends Widget
$action == 'invite',
'nav_invite');
}
Event::handle('EndSubGroupNav', array($this));
}
$this->out->elementEnd('ul');
}
}