Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Now that newsletter module is well integrated with entities and we can add arbitrary fields to subsciption form etc, it would be good to have also access to all these token for the template textarea. So I suggest to change line 77 of includes/newsletter.admin.inc in the following way:
from
'#token_types' => $template->basic ? array('site', 'newsletter') : array('site', 'node', 'newsletter', 'term'),
to
'#token_types' => $template->basic ? array('site', 'newsletter') : 'all',
Comments
Comment #1
d.sibaud CreditAttribution: d.sibaud commentedor better:
'#token_types' => $template->basic ? array('site', 'newsletter', 'newsletter- list', 'newsletter-subscriber', 'newsletter-template') : array('site', 'node', 'newsletter', 'newsletter- list', 'newsletter-subscriber', 'newsletter-template', 'term'),
Comment #2
ParisLiakos CreditAttribution: ParisLiakos commentedyes i believe #1 is the right thing to do:)
Comment #3
ParisLiakos CreditAttribution: ParisLiakos commentedOk i have added them,but remains to be seen whether it works now:)
dont have time right now,i will check it an other day
Comment #4
ParisLiakos CreditAttribution: ParisLiakos commentedHmm patch is in beta9 now..so if someone finds a bug plsz open a new issue