aboutsummaryrefslogtreecommitdiff
path: root/mod/groups
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-19 12:33:38 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-19 12:33:38 +0000
commitefa554d3edb1d5da83268904b7c5e74a3cd19da9 (patch)
tree4efc7b4c131f234fe55545d4747931a4a7a2c939 /mod/groups
parent21892fdd68f0d5213f2da5ab86ed96fac504c2f5 (diff)
downloadelgg-efa554d3edb1d5da83268904b7c5e74a3cd19da9.tar.gz
elgg-efa554d3edb1d5da83268904b7c5e74a3cd19da9.tar.bz2
warning applied to group deletion
git-svn-id: https://code.elgg.org/elgg/trunk@2808 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups')
-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>