Closed (fixed)
Project:
Newsletter (D7)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2012 at 09:50 UTC
Updated:
3 Oct 2012 at 06:01 UTC
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 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 commentedyes i believe #1 is the right thing to do:)
Comment #3
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 commentedHmm patch is in beta9 now..so if someone finds a bug plsz open a new issue