You are here

function newsletter_newsletter_load in Newsletter 7

Loads up the requested newsletter.

5 calls to newsletter_newsletter_load()
NewsletterAutomated::getNewsletterData in includes/newsletter.automated.inc
Loads up current newsletter, or creates a new one.
NewsletterCustom::__construct in includes/newsletter.custom.inc
NewsletterNewsletterController::delete in includes/newsletter.newsletter.controller.inc
newsletter_send_draft in includes/newsletter.admin.inc
Send a custom newsletter draft.
newsletter_statistics_open in includes/newsletter.pages.inc

File

./newsletter.module, line 1025
Defines menu items for newsletter administration, permissions and basic drupal hooks.

Code

function newsletter_newsletter_load($nnids = FALSE, $conditions = array(), $reset = FALSE) {
  if (is_numeric($nnids)) {
    $id = $nnids;
    $nnids = !empty($nnids) ? array(
      $nnids,
    ) : array();
  }
  $newsletters = entity_load('newsletter_newsletter', $nnids, $conditions, $reset);
  return isset($id) ? $newsletters[$id] : $newsletters;
}