Closed (fixed)
Project:
Simplenews Scheduler
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Oct 2010 at 17:18 UTC
Updated:
25 Sep 2012 at 11:11 UTC
When module create a new newsletter edition it could be usufull use $node->simplenews['send'] instead $node->send.
It could be allow others modules interact with the nodeapi simplenews working.
// Trigger it for sending.
$node->simplenews['send'] = 1;
Comments
Comment #1
sgabe commentedCommitted, thanks!
Comment #3
pheudo commentedIt's only a proposal.
Becouse when u save a node with "simplenews['send'] = SIMPLENEWS_COMMAND_SEND_NOW" simplenews nodeapi implementation send automatically during the node_save.
But it sends newsletter multiple times if user that run cron is able to send newsletter... Like matters with Poormanscron...
Comment #4
struesda commentedMoving the setting of the send property down to just before the update api call seems to work (that way, the initial send does not pick up the node for sending - only the 2nd update call picks it up.)
I also went ahead and used the proper constant so it is easier to tell what it is doing.
Comment #5
dgtlmoon commentedShould be resolved in 1.x and 2.x branches
Comment #6
joachim commentedClosing accordingly.