diff options
Diffstat (limited to 'actions/widgets/reorder.php')
-rw-r--r-- | actions/widgets/reorder.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/actions/widgets/reorder.php b/actions/widgets/reorder.php new file mode 100644 index 000000000..e43a0ba73 --- /dev/null +++ b/actions/widgets/reorder.php @@ -0,0 +1,24 @@ +<?php +/** + * Elgg widget reorder action + * + * @package Elgg.Core + * @subpackage Widgets.Management + */ + +$owner = get_input('owner'); +$context = get_input('context'); + +$maincontent = get_input('debugField1'); +$sidebar = get_input('debugField2'); +$rightbar = get_input('debugField3'); + +$result = reorder_widgets_from_panel($maincontent, $sidebar, $rightbar, $context, $owner); + +if ($result) { + system_message(elgg_echo('widgets:panel:save:success')); +} else { + register_error(elgg_echo('widgets:panel:save:failure')); +} + +forward(REFERER);
\ No newline at end of file |