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

salvis’s picture

I don't know the context of this function nor what it's trying to achieve. Maybe chx can help...

salvis’s picture

Version: 5.x-2.0-beta11 » 5.x-2.0
Status: Active » Postponed (maintainer needs more info)

Subscriptions 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.

salvis’s picture

Assigned: Dimm » Unassigned

Feel free to reopen, if you have something to add.

salvis’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)
salvis’s picture