You are here

function hook_simplenews_subscribe_user in Simplenews 3.x

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

Invoked if a subscriber is subscribed to 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 subscribe action.

Related topics

File

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

Code

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