aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
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