aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-20 13:15:50 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-20 13:15:50 +0000
commitb0c7a59ef6e3b0da0f03af5fc8fb8debf3d1e7a6 (patch)
treeb32d6d2d0c0acc308501a109582124e3bae1f0fa /mod
parent4be5d3949310bdec115b93d0ed3e3a4b7a1f8d57 (diff)
downloadelgg-b0c7a59ef6e3b0da0f03af5fc8fb8debf3d1e7a6.tar.gz
elgg-b0c7a59ef6e3b0da0f03af5fc8fb8debf3d1e7a6.tar.bz2
Placeholder for future work (refs #277)
git-svn-id: https://code.elgg.org/elgg/trunk@2855 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/groups/languages/en.php2
-rw-r--r--mod/groups/membershipreq.php38
-rw-r--r--mod/groups/start.php2
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'])