diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/groups/languages/en.php | 2 | ||||
-rw-r--r-- | mod/groups/membershipreq.php | 38 | ||||
-rw-r--r-- | mod/groups/start.php | 2 |
3 files changed, 41 insertions, 1 deletions
diff --git a/mod/groups/languages/en.php b/mod/groups/languages/en.php index aece363de..b39bd96df 100644 --- a/mod/groups/languages/en.php +++ b/mod/groups/languages/en.php @@ -23,6 +23,7 @@ 'groups:new' => "Create a new group",
'groups:edit' => "Edit group",
'groups:delete' => 'Delete group',
+ 'groups:membershiprequests' => 'Manage join requests',
'groups:icon' => 'Group icon (leave blank to leave unchanged)',
'groups:name' => 'Group name',
@@ -65,6 +66,7 @@ 'groups:closed' => "closed group",
'groups:member' => "members",
'groups:searchtag' => "Search groups by tag",
+
/*
* Access
diff --git a/mod/groups/membershipreq.php b/mod/groups/membershipreq.php new file mode 100644 index 000000000..48e4a2500 --- /dev/null +++ b/mod/groups/membershipreq.php @@ -0,0 +1,38 @@ +<?php
+ /**
+ * Manage group invite requests.
+ *
+ * @package ElggGroups
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008-2009
+ * @link http://elgg.com/
+ */
+
+ require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
+ gatekeeper();
+
+ $group_guid = (int) get_input('group_guid');
+ $group = get_entity($group_guid);
+ set_page_owner($group_guid);
+
+ $title = elgg_echo('groups:membershiprequests');
+
+ $area2 = elgg_view_title($title);
+
+ if (($group) && ($group->canEdit()))
+ {
+
+
+
+
+
+
+ } else {
+ $area2 .= elgg_echo("groups:noaccess");
+ }
+
+ $body = elgg_view_layout('two_column_left_sidebar', $area1, $area2);
+
+ page_draw($title, $body);
+?>
\ No newline at end of file diff --git a/mod/groups/start.php b/mod/groups/start.php index ae03c8e2f..85b43ad77 100644 --- a/mod/groups/start.php +++ b/mod/groups/start.php @@ -183,8 +183,8 @@ if (isloggedin()) {
if ($page_owner->canEdit()) {
add_submenu_item(elgg_echo('groups:edit'),$CONFIG->wwwroot . "mod/groups/edit.php?group_guid=" . $page_owner->getGUID(), '1groupsactions');
- //add_submenu_item(elgg_echo('groups:delete'),$CONFIG->wwwroot . "action/groups/delete?group_guid=" . $page_owner->getGUID(), '1groupsactions');
add_submenu_item(elgg_echo('groups:invite'),$CONFIG->wwwroot . "mod/groups/invite.php?group_guid={$page_owner->getGUID()}", '1groupsactions');
+ add_submenu_item(elgg_echo('groups:membershiprequests'),$CONFIG->wwwroot . "mod/groups/membershipreq.php?group_guid={$page_owner->getGUID()}", '1groupsactions');
}
if ($page_owner->isMember($_SESSION['user'])) {
if ($page_owner->getOwner() != $_SESSION['guid'])
|