You are here

function simplenews_subscriber_load in Simplenews 7

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

Load a simplenews newsletter subscriber object.

Parameters

$snid: Simplenews subscriber ID.

Return value

Newsletter subscriber object, FALSE if subscriber does not exist.

Related topics

5 calls to simplenews_subscriber_load()
SimpleNewsAdministrationTestCase::testSubscriptionManagement in tests/simplenews.test
Test newsletter subscription management.
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.
simplenews_subscription_activate in includes/simplenews.admin.inc
Callback function to (de-)activate subscriptions.
simplenews_subscription_delete_multiple in includes/simplenews.admin.inc
Callback function to delete subscriptions.

File

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

Code

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