aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/groups/languages/en.php1
-rw-r--r--mod/groups/views/default/forms/groups/edit.php3
2 files changed, 3 insertions, 1 deletions
diff --git a/mod/groups/languages/en.php b/mod/groups/languages/en.php
index 6d9c9c832..8f0a400c8 100644
--- a/mod/groups/languages/en.php
+++ b/mod/groups/languages/en.php
@@ -194,6 +194,7 @@ or click below to confirm request:
'grouppost:notdeleted' => 'Group posting could not be deleted',
'groupstopic:deleted' => 'Topic deleted',
'groupstopic:notdeleted' => 'Topic not deleted',
+ 'groups:deletewarning' => "Are you sure you want to delete this group? There is no undo!",
);
add_translation("en",$english);
diff --git a/mod/groups/views/default/forms/groups/edit.php b/mod/groups/views/default/forms/groups/edit.php
index 5a0976cc7..e54c4ce9a 100644
--- a/mod/groups/views/default/forms/groups/edit.php
+++ b/mod/groups/views/default/forms/groups/edit.php
@@ -121,9 +121,10 @@
<?php
if ($vars['entity'])
{
+ $warning = elgg_echo("groups:deletewarning");
?>
<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
+ <input type="submit" name="delete" value="<?php echo elgg_echo('groups:delete'); ?>" onclick="javascript:return confirm('<?php echo $warning; ?>')"/><?php
}
?>
</form>