aboutsummaryrefslogtreecommitdiff
path: root/actions/plugins
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-03 10:53:00 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-03 10:53:00 +0000
commit4e9375b4f3d3ab685eef14bbd38afbb6eca1d13c (patch)
tree4690ecd91b7ddc8c4c297bcacf5504f4c13ba6f2 /actions/plugins
parentadd5f3cbd9a99f90c1bcd198eb4c42d34d4acd2b (diff)
downloadelgg-4e9375b4f3d3ab685eef14bbd38afbb6eca1d13c.tar.gz
elgg-4e9375b4f3d3ab685eef14bbd38afbb6eca1d13c.tar.bz2
Closes #398
git-svn-id: https://code.elgg.org/elgg/trunk@2165 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/plugins')
-rw-r--r--actions/plugins/settings/save.php3
-rw-r--r--actions/plugins/usersettings/save.php3
2 files changed, 6 insertions, 0 deletions
diff --git a/actions/plugins/settings/save.php b/actions/plugins/settings/save.php
index ef6fbbc0f..e21bc1122 100644
--- a/actions/plugins/settings/save.php
+++ b/actions/plugins/settings/save.php
@@ -34,6 +34,9 @@
}
}
+ // An event to tell any interested plugins of the change is settings
+ trigger_elgg_event('plugin_settings_save', $plugin, find_plugin_settings($plugin));
+
system_message(sprintf(elgg_echo('plugins:settings:save:ok'), $plugin));
forward($_SERVER['HTTP_REFERER']);
?> \ No newline at end of file
diff --git a/actions/plugins/usersettings/save.php b/actions/plugins/usersettings/save.php
index f70cd170a..342e6c444 100644
--- a/actions/plugins/usersettings/save.php
+++ b/actions/plugins/usersettings/save.php
@@ -34,6 +34,9 @@
}
}
+ // An event to tell any interested plugins of the change is settings
+ trigger_elgg_event('plugin_usersettings_save', $plugin, find_plugin_settings($plugin));
+
system_message(sprintf(elgg_echo('plugins:usersettings:save:ok'), $plugin));
forward($_SERVER['HTTP_REFERER']);
?> \ No newline at end of file