function simplenews_rules_action_subscription_delete in Simplenews 7
Same name and namespace in other branches
- 8.2 simplenews_rules/simplenews_rules.rules.inc \simplenews_rules_action_subscription_delete()
- 8 simplenews_rules/simplenews_rules.rules.inc \simplenews_rules_action_subscription_delete()
- 7.2 simplenews_rules/simplenews_rules.rules.inc \simplenews_rules_action_subscription_delete()
- 3.x simplenews_rules/simplenews_rules.rules.inc \simplenews_rules_action_subscription_delete()
Action Implementation: Delete an email address from a specific Simplenews newsletter
File
- simplenews_rules/
simplenews_rules.rules.inc, line 230 - Rules hooks for the Simplenews newsletter module.
Code
function simplenews_rules_action_subscription_delete($args, $settings) {
if (!empty($args['mail']) && !empty($args['tid'])) {
simplenews_subscription_delete(array(
'mail' => $args['mail'],
'tid' => $args['tid'],
));
}
}