You are here

protected function NewsletterAutomated::getSubscribers in Newsletter 7

Same name and namespace in other branches
  1. 7.2 includes/newsletter.automated.inc \NewsletterAutomated::getSubscribers()

Loads up current lists's subscribers.

1 call to NewsletterAutomated::getSubscribers()
NewsletterAutomated::__construct in includes/newsletter.automated.inc

File

includes/newsletter.automated.inc, line 52
Contains NewsletterMail and NewsletterCustom that extend NewsletterBasic.

Class

NewsletterAutomated
Newsletter class that sends automated, non-custom newsletters with dynamic content based on taxonomy terms.

Code

protected function getSubscribers() {
  if (!empty($this->left[$this->list->nlid])) {
    return $this->left[$this->list->nlid];
  }
  else {
    return newsletter_subscribers_by_list($this->list->nlid);
  }
}