aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/views/default')
-rw-r--r--mod/groups/views/default/forms/groups/edit.php17
1 files changed, 16 insertions, 1 deletions
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