events (hooks)

tommy's Avatar


17 May, 2013 09:24 AM

Triggered events have no idea which module triggered them. This means every callback has to be tailor made to fit the needs of a certain module.

I suggest passing the "from module" (maybe even from action?) and the "event name" to the queue as well. This enables a callback to react with more intelligence.

Example: a module responsible for sending an e-mail message is subscribed to a certain event. The event is fired. The module can now send data to the admin regarding this event and base certain parameters (specific template? message? full_url to modified post? etc..)



Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac