diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-19 19:11:03 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-19 19:11:03 +0000 |
commit | f42382e0bff1692e2ddcd1c8eb316836e3020f1e (patch) | |
tree | bd11cb29bbae69f0daff3c0cd9c273203c788dc9 /engine | |
parent | b70654070d83323853f808beccc6780cfcd51ce4 (diff) | |
download | elgg-f42382e0bff1692e2ddcd1c8eb316836e3020f1e.tar.gz elgg-f42382e0bff1692e2ddcd1c8eb316836e3020f1e.tar.bz2 |
users can delete widgets from layout
git-svn-id: http://code.elgg.org/elgg/trunk@7349 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r-- | engine/classes/ElggWidget.php | 4 | ||||
-rw-r--r-- | engine/lib/widgets.php | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/engine/classes/ElggWidget.php b/engine/classes/ElggWidget.php index 21ad8c5dd..0a0eb9b1c 100644 --- a/engine/classes/ElggWidget.php +++ b/engine/classes/ElggWidget.php @@ -142,4 +142,8 @@ class ElggWidget extends ElggObject { } $this->column = $column; } + + public function canEdit($user_guid = 0) { + return true; + } }
\ No newline at end of file diff --git a/engine/lib/widgets.php b/engine/lib/widgets.php index 9c6e68b53..92d022913 100644 --- a/engine/lib/widgets.php +++ b/engine/lib/widgets.php @@ -601,6 +601,7 @@ function widgets_init() { register_action('widgets/save'); register_action('widgets/add'); register_action('widgets/move'); + register_action('widgets/delete'); // Now run this stuff, but only once run_function_once("widget_run_once"); |