- ivnish Kazakhstan
Automatically closed because Drupal 7 security and bugfix support has ended → as of 5 January 2025. If the issue verifiably applies → to later versions, please reopen with details and update the version.
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
Closed: outdated
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Automatically closed because Drupal 7 security and bugfix support has ended → as of 5 January 2025. If the issue verifiably applies → to later versions, please reopen with details and update the version.