summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-04-05 10:12:27 -0400
committerEvan Prodromou <evan@status.net>2010-04-05 10:12:27 -0400
commitffc1ac02c3f1f566088c8bef7c54d1ae97e56a36 (patch)
treef6b681ede0131dcc068fe0f9112f377bcb2c89dd
parentac9fda4bc0d0440378eeb23cc3ba673bb8f2b981 (diff)
add an event for group members minilist
-rw-r--r--actions/showgroup.php25
1 files changed, 15 insertions, 10 deletions
diff --git a/actions/showgroup.php b/actions/showgroup.php
index a0d05ba37..6e0666690 100644
--- a/actions/showgroup.php
+++ b/actions/showgroup.php
@@ -388,18 +388,23 @@ class ShowgroupAction extends GroupDesignAction
$this->elementStart('div', array('id' => 'entity_members',
'class' => 'section'));
- $this->element('h2', null, _('Members'));
+ if (Event::handle('StartShowGroupMembersMiniList', array($this))) {
- $pml = new ProfileMiniList($member, $this);
- $cnt = $pml->show();
- if ($cnt == 0) {
- $this->element('p', null, _('(None)'));
- }
+ $this->element('h2', null, _('Members'));
+
+ $pml = new ProfileMiniList($member, $this);
+ $cnt = $pml->show();
+ if ($cnt == 0) {
+ $this->element('p', null, _('(None)'));
+ }
+
+ if ($cnt > MEMBERS_PER_SECTION) {
+ $this->element('a', array('href' => common_local_url('groupmembers',
+ array('nickname' => $this->group->nickname))),
+ _('All members'));
+ }
- if ($cnt > MEMBERS_PER_SECTION) {
- $this->element('a', array('href' => common_local_url('groupmembers',
- array('nickname' => $this->group->nickname))),
- _('All members'));
+ Event::handle('EndShowGroupMembersMiniList', array($this));
}
$this->elementEnd('div');