Project

General

Profile

Actions

Feature proposal #6907

closed

Implement notifications trigger

Added by krileon about 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Start date:
06 December 2017
Due date:
% Done:

100%

Estimated time:

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.

Actions #1

Updated by krileon about 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 #2

Updated by krileon almost 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF