diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-07-09 16:33:55 -0700 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-07-09 16:33:55 -0700 |
commit | f37be8abe23f6732c980137d7d1951ff5c0fdc35 (patch) | |
tree | aae3f42ea13123b01f93a1aa4e6daaa23b901659 /actions | |
parent | bc849f770ba798a95df076ede2c9d5d4546c3ba6 (diff) | |
parent | 2329cb233a8766ac1a6bc5d5b4d699f2ab773ea4 (diff) | |
download | elgg-f37be8abe23f6732c980137d7d1951ff5c0fdc35.tar.gz elgg-f37be8abe23f6732c980137d7d1951ff5c0fdc35.tar.bz2 |
Merge pull request #296 from sembrestels/delete-river
Delete river items
Diffstat (limited to 'actions')
-rw-r--r-- | actions/river/delete.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/actions/river/delete.php b/actions/river/delete.php new file mode 100644 index 000000000..0d8297932 --- /dev/null +++ b/actions/river/delete.php @@ -0,0 +1,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); |