- while ($this->groups->fetch()) {
- $this->out->menuItem(($this->groups->mainpage) ?
- $this->groups->mainpage :
- common_local_url('showgroup',
- array('nickname' => $this->groups->nickname)),
- $this->groups->getBestName(),
- '',
- $action == 'showgroup' &&
- $this->action->arg('nickname') == $this->groups->nickname,
- 'nav_timeline_group_'.$this->groups->nickname);
- }
- Event::handle('EndGroupsNav', array($this));
+ function seeAllItem() {
+ return array('usergroups',
+ array('nickname' => $this->user->nickname),
+ // TRANS: Link description for seeing all groups.
+ _('See all'),
+ // TRANS: Link title for seeing all groups.
+ _('See all groups you belong to.'));
+ }
+
+ function item($actionName, $args, $label, $description, $id=null, $cls=null)
+ {
+ if ($actionName != 'placeholder') {
+ return parent::item($actionName, $args, $label, $description, $id, $cls);