diff options
-rw-r--r-- | actions/plugins/settings/save.php | 3 | ||||
-rw-r--r-- | actions/plugins/usersettings/save.php | 3 |
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 |