aboutsummaryrefslogtreecommitdiff
path: root/mod/groups
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups')
-rw-r--r--mod/groups/start.php2
-rw-r--r--mod/groups/views/default/forms/groups/edit.php17
2 files changed, 17 insertions, 2 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php
index ee4c3d319..99afa4203 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -185,7 +185,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: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'])) {
diff --git a/mod/groups/views/default/forms/groups/edit.php b/mod/groups/views/default/forms/groups/edit.php
index a570a7a86..4bec70b04 100644
--- a/mod/groups/views/default/forms/groups/edit.php
+++ b/mod/groups/views/default/forms/groups/edit.php
@@ -8,6 +8,7 @@
* @copyright Curverider Ltd 2008-2009
* @link http://elgg.com/
*/
+
?>
<form action="<?php echo $vars['url']; ?>action/groups/edit" enctype="multipart/form-data" method="post">
@@ -114,6 +115,20 @@
?>
<input type="hidden" name="user_guid" value="<?php echo page_owner_entity()->guid; ?>" />
<input type="submit" class="submit_button" value="<?php echo elgg_echo("save"); ?>" />
+
</p>
-</form> \ No newline at end of file
+</form>
+
+<div id="delete_group_option">
+ <form action="<?php echo $vars['url'] . "action/groups/delete"; ?>">
+ <?php
+ if ($vars['entity'])
+ {
+ ?>
+ <input type="hidden" name="group_guid" value="<?php echo $vars['entity']->getGUID(); ?>" />
+ <input type="submit" name="delete" value="<?php echo elgg_echo('groups:delete'); ?>" /><?php
+ }
+ ?>
+ </form>
+</div> \ No newline at end of file