Feature proposal #3817closed
API based triggers
Implement triggers for easily adding new activity through API (same way you'd call CB Captcha for example). Implement triggers for display and access so activity can be altered externally (e.g. allow 3rd party extensions and CB plugins to add activity and change that activities display and access).
Updated by krileon over 10 years ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
Implemented the following triggers.
The trigger activity_addActivity is used to add new activity using the following usage.
$_PLUGINS->trigger( 'activity_addActivity', array( $userId, $type, $user, $subtype, $item, $from, $to, $title, $message, $icon, $class, $date ) );
Only userid and type are required. Leaving date empty will cause it to use UTC now (best to leave as this).