Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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.