From f42382e0bff1692e2ddcd1c8eb316836e3020f1e Mon Sep 17 00:00:00 2001 From: cash Date: Fri, 19 Nov 2010 19:11:03 +0000 Subject: users can delete widgets from layout git-svn-id: http://code.elgg.org/elgg/trunk@7349 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/widgets/delete.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 actions/widgets/delete.php (limited to 'actions/widgets/delete.php') diff --git a/actions/widgets/delete.php b/actions/widgets/delete.php new file mode 100644 index 000000000..167324b0c --- /dev/null +++ b/actions/widgets/delete.php @@ -0,0 +1,19 @@ +canEdit() && $widget->delete()) { + forward(REFERER); +} + +register_error(elgg_echo('widgets:remove:failure')); +forward(REFERER); -- cgit v1.2.3