aboutsummaryrefslogtreecommitdiff
path: root/actions/widgets/save.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-19 21:23:20 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-19 21:23:20 +0000
commit9d810a6331a025c28052eadcbfe7e6e77b8a7334 (patch)
treed8a1c9348344d6b2b5b9a0740623d5df1ac5f248 /actions/widgets/save.php
parent3b46665b3f4ee10e9d2778033ea7180cca7571eb (diff)
downloadelgg-9d810a6331a025c28052eadcbfe7e6e77b8a7334.tar.gz
elgg-9d810a6331a025c28052eadcbfe7e6e77b8a7334.tar.bz2
updating widget contents when settings are changed
git-svn-id: http://code.elgg.org/elgg/trunk@7351 36083f99-b078-4883-b0ff-0f9b5a30f544
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