function simplenews_rules_simplenews_subscribe_user in Simplenews 7
Implements hook_simplenews_unsubscribe_user().
File
- simplenews_rules/
simplenews_rules.module, line 38 - Module file for Simpelnews rules integration.
Code
function simplenews_rules_simplenews_subscribe_user($subscriber, $subscription) {
$args = array(
'mail' => $subscriber->mail,
'tid' => $subscription->tid,
);
rules_invoke_event_by_args('simplenews_rules_event_subscribe', $args);
}