blob: 167324b0ca58f73eb3f248ea32cbcb8db64f2f1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
/**
* Elgg widget delete action
*
* @package Elgg.Core
* @subpackage Widgets.Management
*/
$guid = get_input('guid');
$user = get_loggedin_user();
$widget = get_entity($guid);
if ($widget && $user->canEdit() && $widget->delete()) {
forward(REFERER);
}
register_error(elgg_echo('widgets:remove:failure'));
forward(REFERER);
|