I needed a trigger for SimpleNews newsletter to execute actions when the newsletter is sent. I'll post my patch below.

Comments

dooug’s picture

The patch applies on 6.x-1.x-dev. I have yet to test if it applies against 6.x-2.x-dev.

sutharsan’s picture

Note that this trigger is called after *every* newsletter email sent. I'm to sure of other users like this behavior too. What about sending when a complete newsletter was sent?

miro_dietiker’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Needs review » Needs work

Clearly needs work as it should only be executed after send completion.
Moving to feature branch.

simon georges’s picture

Status: Needs work » Needs review
StatusFileSize
new939 bytes

New attempt, using simplenews_send_status_update() as trigger.

pillarsdotnet’s picture

Updated patches for 6.x-2.x and 7.x-1.x

simon georges’s picture

Thanks for the updated patches. Did you have the occasion to test the functionality ?

pillarsdotnet’s picture

Not using the actions module yet; no. I plan to in the near future, though.

simon georges’s picture

Status: Needs review » Closed (won't fix)

Waiting from Rules integration.