12345678910111213141516171819202122 |
- <?php
- /**
- * Elgg groups invite form
- *
- * @package ElggGroups
- */
- $group = $vars['entity'];
- $owner = $group->getOwnerEntity();
- $forward_url = $group->getURL();
- $friends = elgg_get_logged_in_user_entity()->getFriends(array('limit' => 0));
- if ($friends) {
- echo elgg_view('input/friendspicker', array('entities' => $friends, 'name' => 'user_guid', 'highlight' => 'all'));
- echo '<div class="elgg-foot">';
- echo elgg_view('input/hidden', array('name' => 'forward_url', 'value' => $forward_url));
- echo elgg_view('input/hidden', array('name' => 'group_guid', 'value' => $group->guid));
- echo elgg_view('input/submit', array('value' => elgg_echo('invite')));
- echo '</div>';
- } else {
- echo elgg_echo('groups:nofriendsatall');
- }
|