aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/default
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-12 15:51:42 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-12 15:51:42 +0000
commit0b3d3ea0432112d244a13c053240e09f185b8d28 (patch)
tree23aa06f0f064d04ce74963a62a0f9e4f8c4fcb56 /mod/groups/views/default
parent49fe734e980b14ca2a0506a4787c3e3dca3373ef (diff)
downloadelgg-0b3d3ea0432112d244a13c053240e09f185b8d28.tar.gz
elgg-0b3d3ea0432112d244a13c053240e09f185b8d28.tar.bz2
Group invites now uses the friends picker.
git-svn-id: https://code.elgg.org/elgg/trunk@1858 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/views/default')
-rw-r--r--mod/groups/views/default/forms/groups/invite.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/groups/views/default/forms/groups/invite.php b/mod/groups/views/default/forms/groups/invite.php
index c1b13761d..d1d3c09b1 100644
--- a/mod/groups/views/default/forms/groups/invite.php
+++ b/mod/groups/views/default/forms/groups/invite.php
@@ -19,8 +19,11 @@
<form action="<?php echo $vars['url']; ?>action/groups/addtogroup" method="post">
<?php
-
- echo elgg_view('sharing/invite',array('shares' => $shares, 'owner' => $owner, 'group' => $group));
+
+ if ($friends = get_entities_from_relationship('friend',$owner->getGUID(),false,'user','')) {
+ echo elgg_view('friends/picker',array('entities' => $friends, 'internalname' => 'user_guid'));
+ }
+ // echo elgg_view('sharing/invite',array('shares' => $shares, 'owner' => $owner, 'group' => $group));
?>
<input type="hidden" name="forward_url" value="<?php echo $forward_url; ?>" />