diff options
Diffstat (limited to 'mod/groups/views/default/forms')
-rw-r--r-- | mod/groups/views/default/forms/groups/invite.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/mod/groups/views/default/forms/groups/invite.php b/mod/groups/views/default/forms/groups/invite.php new file mode 100644 index 000000000..055bb738b --- /dev/null +++ b/mod/groups/views/default/forms/groups/invite.php @@ -0,0 +1,29 @@ +<?php + /** + * Elgg groups plugin + * + * @package ElggGroups + * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 + * @author Marcus Povey + * @copyright Curverider Ltd 2008 + * @link http://elgg.com/ + */ + + $group = $vars['entity']; + $owner = get_entity($vars['entity']->owner_guid); + $forward_url = $group->getURL(); + + +?> +<h2><?php echo sprintf(elgg_echo('groups:inviteto'), $group->title); ?></h2> +<form action="<?php echo $vars['url']; ?>action/groups/addtogroup" method="post"> + + <?php + + echo elgg_view('sharing/invite',array('shares' => $shares, 'owner' => $owner, 'group' => $group)); + + ?> + <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'); ?>" /> +</form>
\ No newline at end of file |