blob: 5b0aa8e102d9cad10ba00f603ccf4c473f8c14a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php
/**
* Elgg friends: delete collection action
*
* @package Elgg
* @subpackage Core
*/
$collection_id = (int) get_input('collection');
// check the ACL exists and we can edit
if (!can_edit_access_collection($collection_id)) {
register_error(elgg_echo("friends:collectiondeletefailed"));
forward(REFERER);
}
if (delete_access_collection($collection_id)) {
system_message(elgg_echo("friends:collectiondeleted"));
} else {
register_error(elgg_echo("friends:collectiondeletefailed"));
}
forward(REFERER);
|