$title = elgg_echo('groups:invite');
if ($group && $group->canEdit()) {
- $content = elgg_view_form('groups/invite', array('id' => 'invite_to_group', 'class' => 'mtm', array('entity' => $group)));
+ $content = elgg_view_form('groups/invite', array(
+ 'id' => 'invite_to_group',
+ 'class' => 'mtm',
+ ), array(
+ 'entity' => $group,
+ ));
} else {
$content .= elgg_echo('groups:noaccess');
}
<?php
/**
- * Elgg groups plugin
+ * Elgg groups invite form
*
* @package ElggGroups
*/
$group = $vars['entity'];
-$owner = get_entity($vars['entity']->owner_guid);
+$owner = $group->getOwnerEntity();
$forward_url = $group->getURL();
$friends = elgg_get_logged_in_user_entity()->getFriends('', 0);