aboutsummaryrefslogtreecommitdiff
path: root/actions/widgets/save.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/widgets/save.php')
-rw-r--r--actions/widgets/save.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/actions/widgets/save.php b/actions/widgets/save.php
index 4af60c7de..13ea90e85 100644
--- a/actions/widgets/save.php
+++ b/actions/widgets/save.php
@@ -13,6 +13,11 @@ $result = elgg_save_widget_settings($guid, $params);
if (!$result) {
register_error(elgg_echo('widgets:save:failure'));
+} else {
+ // send back the widget contents
+ $widget = get_entity($guid);
+ $view = "widgets/$widget->handler/view";
+ echo elgg_view($view, array('entity' => $widget));
}
forward(REFERER); \ No newline at end of file