Closed (works as designed)
Project:
GovDelivery Integration
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jul 2011 at 17:14 UTC
Updated:
8 Feb 2012 at 20:07 UTC
There are two different functions for adding subscribers. Specifically:
function govdelivery_queued_subscribe($item) {
function govdelivery_subscribe($list_code, $email, $from_queue = FALSE) {
The result of this is that the queue messages setting is ignored because the calling function/module must hard-code a decision to use queued or non-queued messages. More challenging the mis-match in arguments means they aren't directly interchangeable.
Comments
Comment #1
ben.bunk commentedThe queued_subscribe function is intended for internal use only by the queue processor. The third parameter is typically only set to true if the caller intends to handle errors independently otherwise the parameter should be set to false and the message will be queued on error.