Actions
Feature proposal #6907
closedImplement notifications trigger
Description
Implement trigger in sendNotification to allow for easy override of the notification behavior. This needs to also support passing of integration objects (e.g. GJ Events event object) so can be used in CB Auto Actions to log CB Activity notifications to recipients. Needs to handle a means of toggling off the normal notification behavior as well so it doesn't send multiple notifications.
Updated by krileon almost 7 years ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
Implemented as follows.
$_PLUGINS->trigger( 'gj_onSendNotification', array( &$type, &$fromUser, &$toUser, &$subject, &$body, $group, $extras ) );
In order to override existing behavior change $type to something greater than 4. Note subject and body are after substitution parsing.
Actions