aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/start.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-09 16:55:54 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-09 16:55:54 +0000
commitfbd79f863a8cad8ba17c80be011ecfda914d37c5 (patch)
tree6649fbe9323a60a45993bc3fe7eb63e7618bbf3a /mod/groups/start.php
parent2330e92ff935a9fb14147d37ce227c40e3d7c257 (diff)
downloadelgg-fbd79f863a8cad8ba17c80be011ecfda914d37c5.tar.gz
elgg-fbd79f863a8cad8ba17c80be011ecfda914d37c5.tar.bz2
Closes #282, Refs #640: Group deletion enabled. TODO: Suggested enhancement #752
git-svn-id: https://code.elgg.org/elgg/trunk@2695 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/start.php')
-rw-r--r--mod/groups/start.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php
index e56d7e644..cd1150a58 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -40,6 +40,7 @@
// Register some actions
register_action("groups/edit",false, $CONFIG->pluginspath . "groups/actions/edit.php");
+ register_action("groups/delete",false, $CONFIG->pluginspath . "groups/actions/delete.php");
register_action("groups/join",false, $CONFIG->pluginspath . "groups/actions/join.php");
register_action("groups/leave",false, $CONFIG->pluginspath . "groups/actions/leave.php");
register_action("groups/joinrequest",false, $CONFIG->pluginspath . "groups/actions/joinrequest.php");
@@ -124,6 +125,7 @@
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');
}
if ($page_owner->isMember($_SESSION['user'])) {