aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/default/forms
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-08-22 19:04:55 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-08-22 19:04:55 +0000
commitf9ee6f1429f800c3eed3c0ef59d98219be32fba8 (patch)
tree5ddfd5c1cd961465f5c46d4ed07d765275ddee6f /mod/groups/views/default/forms
parent5a396908110b8d9ae358224f15bdbcb9a6c6dfab (diff)
downloadelgg-f9ee6f1429f800c3eed3c0ef59d98219be32fba8.tar.gz
elgg-f9ee6f1429f800c3eed3c0ef59d98219be32fba8.tar.bz2
Merged r6614:6617 from 1.7 branch into trunk
git-svn-id: http://code.elgg.org/elgg/trunk@6845 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/views/default/forms')
-rw-r--r--mod/groups/views/default/forms/groups/invite.php14
1 files changed, 4 insertions, 10 deletions
diff --git a/mod/groups/views/default/forms/groups/invite.php b/mod/groups/views/default/forms/groups/invite.php
index 11c7fcbdf..6fd418cb9 100644
--- a/mod/groups/views/default/forms/groups/invite.php
+++ b/mod/groups/views/default/forms/groups/invite.php
@@ -12,23 +12,17 @@
$group = $vars['entity'];
$owner = get_entity($vars['entity']->owner_guid);
$forward_url = $group->getURL();
- $options = array(
- 'relationship' => 'friend',
- 'relationship_guid' => get_loggedin_user()->guid,
- 'type' => 'user',
- 'limit' => 9999
- );
- $friends = elgg_get_entities_from_relationship($options);
+ $friends = get_loggedin_user()->getFriends('', 0);
+
if ($friends) {
?>
<form action="<?php echo $vars['url']; ?>action/groups/invite" method="post" id="invite_to_group" class="margin_top">
- <?php
+<?php
echo elgg_view('input/securitytoken');
echo elgg_view('friends/picker',array('entities' => $friends, 'internalname' => 'user_guid', 'highlight' => 'all'));
-
- ?>
+?>
<input type="hidden" name="forward_url" value="<?php echo $forward_url; ?>" />
<input type="hidden" name="group_guid" value="<?php echo $group->guid; ?>" />
<input type="submit" value="<?php echo elgg_echo('invite'); ?>" />