From 7e8a3d71ca771f077edea92e3e73685d30ca7aba Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 31 Jul 2008 14:05:54 +0000 Subject: Friends collections are now fully part of the main core git-svn-id: https://code.elgg.org/elgg/trunk@1630 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/friends/deletecollection.php | 49 ++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 actions/friends/deletecollection.php (limited to 'actions/friends/deletecollection.php') diff --git a/actions/friends/deletecollection.php b/actions/friends/deletecollection.php new file mode 100644 index 000000000..3d389e6c2 --- /dev/null +++ b/actions/friends/deletecollection.php @@ -0,0 +1,49 @@ +owner_guid == $_SESSION['user']->getGUID()){ + + $delete_collection = delete_access_collection($collection_id); + + // Success message + system_message(elgg_echo("friends:collectiondeleted")); + + } else { + + // Failure message + system_message(elgg_echo("friends:collectiondeletefailed")); + + } + + } else { + + // Failure message + system_message(elgg_echo("friends:collectiondeletefailed")); + + } + + // Forward to the collections page + forward("pg/collections/" . $_SESSION['user']->username); + +?> \ No newline at end of file -- cgit v1.2.3