aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorFx Nion <http://fxnion.free.fr>2012-05-13 19:56:15 +0200
committerSem <sembrestels@riseup.net>2012-05-13 19:56:15 +0200
commitb070daa95241bc0c7d46011a3de7674fbf0c5e68 (patch)
tree638f771d1708194ab4a1cfb9614b73cd9fbaca5f /actions
downloadelgg-b070daa95241bc0c7d46011a3de7674fbf0c5e68.tar.gz
elgg-b070daa95241bc0c7d46011a3de7674fbf0c5e68.tar.bz2
v2.4
Diffstat (limited to 'actions')
-rw-r--r--actions/reset.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/actions/reset.php b/actions/reset.php
new file mode 100644
index 000000000..4ea429da6
--- /dev/null
+++ b/actions/reset.php
@@ -0,0 +1,15 @@
+<?php
+
+ //action_gatekeeper();
+
+ global $CONFIG;
+
+ $result = reorder_widgets_from_panel(null, null, null, 'custom_index_widgets', 2);
+ if ($result) {
+ system_message(elgg_echo('widgets:save:success'));
+ } else {
+ register_error(elgg_echo('widgets:save:failure'));
+ }
+ forward($_SERVER['HTTP_REFERER']);
+
+?> \ No newline at end of file