From 4e9375b4f3d3ab685eef14bbd38afbb6eca1d13c Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 3 Oct 2008 10:53:00 +0000 Subject: Closes #398 git-svn-id: https://code.elgg.org/elgg/trunk@2165 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/plugins/settings/save.php | 3 +++ actions/plugins/usersettings/save.php | 3 +++ 2 files changed, 6 insertions(+) (limited to 'actions/plugins') 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 -- cgit v1.2.3