diff --git a/modules/opd_daily_emails/opd_daily_emails.module b/modules/opd_daily_emails/opd_daily_emails.module index 682a98a7f..fc311bd3e 100644 --- a/modules/opd_daily_emails/opd_daily_emails.module +++ b/modules/opd_daily_emails/opd_daily_emails.module @@ -36,6 +36,8 @@ function opd_daily_emails_entity_presave(Drupal\Core\Entity\EntityInterface $ent return; } + // TODO: Don't add a CTA if the email already contains a "P.S.". + $nodeStorage = \Drupal::entityTypeManager()->getStorage('node'); $query = $nodeStorage->getQuery(); $query->condition('status', NodeInterface::PUBLISHED);