public function NewsletterAutomated::checkCustom in Newsletter 7
Same name and namespace in other branches
- 7.2 includes/newsletter.automated.inc \NewsletterAutomated::checkCustom()
Checkes whether current custom list reached its send rate.
File
- includes/
newsletter.automated.inc, line 234 - 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
public function checkCustom() {
$result = $this
->getQuery()
->execute()
->fetchAll();
$count = count($result);
return (bool) ($count >= $this->list->send_rate);
}