You are here

function hook_simplenews_unsubscribe in Simplenews 3.x

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

Invoked if a subscriber is unsubscribed from a newsletter.

Parameters

\Drupal\simplenews\Entity\Subscriber $subscriber: The subscriber object including all subscriptions of this user.

string $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 204
Hooks provided by the Simplenews module.

Code

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