aboutsummaryrefslogtreecommitdiff
path: root/actions/widgets
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-18 15:46:57 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-18 15:46:57 +0000
commitf46b9a78e84dc57b7673691c7297aaf81f6f7b07 (patch)
tree8b163c22a449fb48d484b0df45a071fca0e0f39c /actions/widgets
parenta783b882e7f9422d75ab3ff9192558a01943d252 (diff)
downloadelgg-f46b9a78e84dc57b7673691c7297aaf81f6f7b07.tar.gz
elgg-f46b9a78e84dc57b7673691c7297aaf81f6f7b07.tar.bz2
Added widget handling.
git-svn-id: https://code.elgg.org/elgg/trunk@972 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/widgets')
-rw-r--r--actions/widgets/reorder.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/actions/widgets/reorder.php b/actions/widgets/reorder.php
new file mode 100644
index 000000000..47d446519
--- /dev/null
+++ b/actions/widgets/reorder.php
@@ -0,0 +1,31 @@
+<?php
+
+ /**
+ * Elgg widget reorder action
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+
+
+ $owner = get_input('owner');
+ $context = get_input('context');
+
+ $maincontent = get_input('debugField1');
+ $sidebar = get_input('debugField2');
+
+ $result = reorder_widgets_from_panel($maincontent, $sidebar, $context, $owner);
+
+ if ($result) {
+ system_message(elgg_echo('widgets:save:success'));
+ } else {
+ system_message(elgg_echo('widgets:save:failure'));
+ }
+
+ forward($_SERVER['HTTP_REFERER']);
+
+?> \ No newline at end of file