HI everyone,
Are there any events that are triggered after saving the plugin settings ? How can I execute a function after the plugin settings have been saved?
Regards,
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Jerome Bakker@jeabakker
Jerome Bakker - 1 like
- Hermand Pessek@rheman
Hermand Pessek - 0 likes
You must log in to post replies.There isn't a specific hook/event after the plugin settings are saved. But you can always listen to the plugin hook 'response', 'action:plugins/settings/save'.
If you get an OKReponse in the hook, everything went well. If you get an ErrorResponse something went wrong.
Learn more: http://learn.elgg.org/en/stable/guides/hooks-list.html#action-hooks
https://github.com/Elgg/Elgg/blob/a1a29f1512ed97d152c8cb558df808c6c4cfe488/engine/classes/Elgg/Http/ResponseFactory.php#L270
Thanks a lot