Messaging and/or Notifications integration

Created on 25 March 2009, about 16 years ago
Updated 24 April 2025, 12 days ago

This module is a plugin for the notifications module allowing 'privatemsg received' alerts through the notifications and messaging framework. The messaging template is available to be configured at "messaging/template/edit" under 'Privatemsg notifications'.

At the moment it outputs the privatemsg data as tokens ([privatemsg-author], [privatemsg-subject], [privatemsg-body]....and so on) which you will find in the template configuration.
Each users subscription must still be saved as I didn't write that into any ui or admin section.

A subscription for this event would look something like this:

$subscription = array(
'uid' => $user->uid, //***SUBSCRIBING USERS UID***
'module' => 'privatemsg_notify',
'type' => 'recieved',
'event_type' => 'privatemsg',
'send_interval' => 0, //or other, or user/site default
'send_method' => 'mail', //or other, or user/site default
'cron' => 1,
);
notifications_save_subscription($subscription);

any questions, fire away.

Aerostop

Feature request
Status

Closed: outdated

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024