Hello everyone,
Is there an event bound to the action of the forms.
I want to trigger some functions when a give form is submitted. The form belongs to another plugin, and when that form is submitted I want to trigger some functions. Moreover, the form is not used to create entity. if the form was used to create entity I could have use events bound to entity as describe here http://learn.elgg.org/en/stable/guides/events-list.html.
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.
- Nikolai Shcherbin@rivervanrain

Nikolai Shcherbin - 0 likes
- Hermand Pessek@rheman

Hermand Pessek - 0 likes
- Jerome Bakker@jeabakker

Jerome Bakker - 0 likes
You must log in to post replies.http://learn.elgg.org/en/stable/design/events.html#register-to-handle-an-elgg-event is only Elgg core events' list.
You can use elgg_trigger_event() function in your action and register any callback using elgg_register_event_handler() function.
Thanks
from within core there are 2 events bound to each action
first is the 'action:validate' '<actionname>' (eg. blog/save) hook which is triggered before the action is handled
second is the 'response' 'action:<actioname>' (eg. blog/save) hook which is triggered after the action is processed and the response is sent to the user.
See http://learn.elgg.org/en/stable/guides/hooks-list.html#action-hooks
Maybe with one of these 2 you can make it work