You are here

function hook_simplenews_unsubscribe in Simplenews 8

Same name and namespace in other branches
  1. 8.2 simplenews.api.php \hook_simplenews_unsubscribe()
  2. 7.2 simplenews.api.php \hook_simplenews_unsubscribe()
  3. 3.x simplenews.api.php \hook_simplenews_unsubscribe()

Invoked if a subscriber is unsubscribed from a newsletter.

Parameters

$subscriber: The subscriber object including all subscriptions of this user.

$subscription: The subscription object for this specific unsubscribe action.

Related topics

1 function implements hook_simplenews_unsubscribe()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

simplenews_rules_simplenews_unsubscribe in simplenews_rules/simplenews_rules.module
Implements hook_simplenews_unsubscribe().
1 invocation of hook_simplenews_unsubscribe()
Subscriber::unsubscribe in src/Entity/Subscriber.php
Delete a subscription to a certain newsletter of the subscriber.

File

./simplenews.api.php, line 184
Hooks provided by the Simplenews module.

Code

function hook_simplenews_unsubscribe(SimplenewsSubscriber $subscriber, $subscription) {
}