aboutsummaryrefslogtreecommitdiff
path: root/actions/river/delete.php
blob: 0d8297932629b3e7e9f6c9dbe967f053513b320d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
/**
 * River item delete action
 *
 * @package Elgg
 * @subpackage Core
 */

$id = get_input('id', false);

if ($id !== false && elgg_is_admin_logged_in()) {
	if (elgg_delete_river(array('id' => $id))) {
		system_message(elgg_echo('river:delete:success'));
	} else {
		register_error(elgg_echo('river:delete:fail'));
	}
} else {
	register_error(elgg_echo('river:delete:fail'));
}

forward(REFERER);