aboutsummaryrefslogtreecommitdiff
path: root/actions/admin/delete_admin_notice.php
blob: a9c3b87585401a26a4ca3a2f544f6a55e2b53bc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
/**
 * Removes an admin notice.
 */

$guid = get_input('guid');
$notice = get_entity($guid);

if (!(elgg_instanceof($notice, 'object', 'admin_notice') && $notice->delete())) {
	register_error(elgg_echo("admin:notices:could_not_delete"));
}

forward(REFERER);