t('Default'), SIMPLENEWS_RULES_CONFIRMATION_YES => t('Yes'), SIMPLENEWS_RULES_CONFIRMATION_NO => t('No'), ); } /** * Implements hook_simplenews_unsubscribe_user(). */ function simplenews_rules_simplenews_unsubscribe_user($subscriber, $subscription) { $args = array( 'mail' => $subscriber->mail, 'tid' => $subscription->tid, ); rules_invoke_event_by_args('simplenews_rules_event_unsubscribe', $args); } /** * Implements hook_simplenews_unsubscribe_user(). */ 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); }