Closed (fixed)
Project:
Subscriptions
Version:
5.x-2.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Mar 2008 at 12:22 UTC
Updated:
29 Jun 2008 at 14:56 UTC
How to rewrite some code from 1.9 to beta11
It is for http://drupal.org/project/privatemsg (privatemsg-5.x-2.x-dev.tar.gz)
function pm_subscriptions_subscriptions_handle($message, $cron = FALSE) {
if (!$cron) {
subscriptions_hold($message, 'pmsg', 'insert', $message->uid);
}
$variables = ($unserialized = unserialize($message->variables)) ? $unserialized : array();
pm_subscriptions_mail_edit_variables($variables);
subscriptions_mailvars($message->type, $message->id, $message->author, 'pmsg', $cron);
}
Comments
Comment #1
salvisI don't know the context of this function nor what it's trying to achieve. Maybe chx can help...
Comment #2
salvisSubscriptions 2.0 is out and stable.
Please provide the context for this function, what its parameters are, where and when it's called, what it might try to achieve, etc. — maybe we can figure it out.
Comment #3
salvisFeel free to reopen, if you have something to add.
Comment #4
salvisComment #5
salvisActually, this continues in #255118: PM subscriptions module causes WSOD when sending PM.