function simplenews_newsletter_load in Simplenews 7
Same name and namespace in other branches
- 8 simplenews.module \simplenews_newsletter_load()
- 7.2 simplenews.module \simplenews_newsletter_load()
@todo
Related topics
19 calls to simplenews_newsletter_load()
- SimpleNewsI18nTestCase::testContentTranslation in tests/
simplenews.test - SimplenewsSendTestCase::testDelete in tests/
simplenews.test - Create a newsletter, send mails and then delete.
- SimplenewsSendTestCase::testSendMultipleNoCron in tests/
simplenews.test - Send a newsletter using cron.
- SimplenewsSendTestCase::testSendNowCron in tests/
simplenews.test - Send a newsletter without using cron.
- SimplenewsSendTestCase::testSendNowCronThrottle in tests/
simplenews.test - Send a newsletter using cron and a low throttle.
File
- ./
simplenews.module, line 1949 - Simplenews node handling, sent email, newsletter block and general hooks
Code
function simplenews_newsletter_load($nid, $reset = FALSE) {
$conditions = array();
$newsletters = simplenews_newsletter_load_multiple(array(
$nid,
), $conditions, $reset);
return $newsletters ? reset($newsletters) : FALSE;
}