You are here

function simplenews_subscriber_load in Simplenews 7.2

Same name and namespace in other branches
  1. 8 simplenews.module \simplenews_subscriber_load()
  2. 7 simplenews.module \simplenews_subscriber_load()

Load a simplenews newsletter subscriber object.

Parameters

$snid: Simplenews subscriber ID.

Return value

SimplenewsSubscriber Newsletter subscriber entity, FALSE if subscriber does not exist.

Related topics

6 calls to simplenews_subscriber_load()
SimpleNewsAdministrationTestCase::testSubscriptionManagement in tests/simplenews.test
Test newsletter subscription management.
simplenews_confirm_combined in includes/simplenews.subscription.inc
Menu callback: confirm a combined confirmation request.
simplenews_confirm_subscription in includes/simplenews.subscription.inc
Menu callback: confirm the user's (un)subscription request
simplenews_subscriber_load_by_hash in ./simplenews.module
Load a simplenews subscriber using the hash.
simplenews_subscriptions_admin_form in includes/simplenews.subscription.inc
FAPI ADMIN subscription form.

... See full list

File

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

Code

function simplenews_subscriber_load($snid) {
  $subscribers = simplenews_subscriber_load_multiple(array(
    $snid,
  ));
  return $subscribers ? reset($subscribers) : FALSE;
}