You are here

function hook_simplenews_subscribe_user in Simplenews 8

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

Invoked if a subscriber is subscribed to a newsletter.

Parameters

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

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

Related topics

File

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

Code

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