You are here

function simplenews_subscriber_save in Simplenews 7.2

Same name and namespace in other branches
  1. 7 simplenews.module \simplenews_subscriber_save()

Store subscriber object in the database.

Parameters

SimplenewsSubscriber $subscriber: The subscriber entity that should be saved.

Related topics

9 calls to simplenews_subscriber_save()
SimplenewsSubscribeTestCase::testSubscribeMultiple in tests/simplenews.test
Subscribe to multiple newsletters at the same time.
simplenews_confirmation_send_combined in ./simplenews.module
Send collected confirmations.
simplenews_confirm_combined in includes/simplenews.subscription.inc
Menu callback: confirm a combined confirmation request.
simplenews_confirm_multi_form_submit in includes/simplenews.subscription.inc
simplenews_subscribe in ./simplenews.module
Subscribe a user to a newsletter or send a confirmation mail.

... See full list

File

./simplenews.module, line 1828
Simplenews node handling, sent email, newsletter block and general hooks

Code

function simplenews_subscriber_save($subscriber) {
  entity_save('simplenews_subscriber', $subscriber);
}