You are here

function simplenews_rules_action_send in Simplenews 3.x

Same name and namespace in other branches
  1. 8.2 simplenews_rules/simplenews_rules.rules.inc \simplenews_rules_action_send()
  2. 8 simplenews_rules/simplenews_rules.rules.inc \simplenews_rules_action_send()
  3. 7.2 simplenews_rules/simplenews_rules.rules.inc \simplenews_rules_action_send()
  4. 7 simplenews_rules/simplenews_rules.rules.inc \simplenews_rules_action_send()

Action implementation, send a newsletter node.

File

simplenews_rules/simplenews_rules.rules.inc, line 190
Rules hooks for the Simplenews newsletter module.

Code

function simplenews_rules_action_send($node) {
  \Drupal::service('simplenews.spool_storage')
    ->addIssue($node);
}