From a7add808c43b0758a90791359bed0c075b0c35e6 Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 29 Mar 2010 13:12:24 +0000 Subject: simple comment wall added to profiles git-svn-id: http://code.elgg.org/elgg/trunk@5537 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/actions/deletecomment.php | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 mod/profile/actions/deletecomment.php (limited to 'mod/profile/actions/deletecomment.php') diff --git a/mod/profile/actions/deletecomment.php b/mod/profile/actions/deletecomment.php new file mode 100644 index 000000000..48399af4a --- /dev/null +++ b/mod/profile/actions/deletecomment.php @@ -0,0 +1,29 @@ +entity_guid); + //check to make sure the current user can actually edit the commentwall + if ($message->canEdit()) { + //delete the comment + $message->delete(); + //display message + system_message(elgg_echo("profile:commentwall:deleted")); + forward($_SERVER['HTTP_REFERER']); + } + +} else { + system_message(elgg_echo("profile:commentwall:notdeleted")); +} + +forward($_SERVER['HTTP_REFERER']); \ No newline at end of file -- cgit v1.2.3