The onFormatMessageVars handler is called on an array of $vars
containing all of the variables about to be substituted into a notification message or email in the LiveWhale “messages” module. The example module below is abstracted from a need to overwrite certain variables in the RSVP “Registration Received” email.
1 |
|
This example uses the event_id (extracted from the end of ical_url) to add the group title for an event to an RSVP notification or confirmation email.
1 | public function onFormatMessageVars($vars) { |