blob: 9eb5e1eab647a62daa6193c52206de747d194ca3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
/**
* Friends collection edit action
*
* @package Elgg.Core
* @subpackage Friends.Collections
*/
$collection_id = get_input('collection_id');
$friends = get_input('friend');
// check it exists and we can edit
if (!can_edit_access_collection($collection_id)) {
system_message(elgg_echo('friends:collection:edit_failed'));
}
if (update_access_collection($collection_id, $friends)) {
system_message(elgg_echo('friends:collections:edited'));
} else {
system_message(elgg_echo('friends:collection:edit_failed'));
}
forward(REFERER);
|