blob: 581b213535edf0458f2800978b403a43987bdb40 (
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
/**
* Elgg collection add page
*
* @package Elgg
* @subpackage Core
*/
$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);
|