It would be nice to be able to add token to the Privacy Policy link, because it would be more features friendly to have a token saved instead of an actual link which could be invalid after a new installation.
So, this way the feature which contains the settings, won't be overridden if I change the path of the Privacy Policy page.
And of course I can create an install profile which dynamically creates a Privacy Policy page and then sets a variable with it's node id, which could be used as a token for the link.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | eu_cookie_compliance-privacy_policy_link_token-2352571-4.patch | 1.73 KB | svenryen |
| #1 | privacy_policy_link_token-2352571-1.patch | 1015 bytes | yce |
Comments
Comment #1
yce commentedHere, I created a patch for it :)
Comment #2
boobaa@yce, your patch lacks the hook_tokens() implementation which is most likely needed.
Comment #3
svenryen commentedI agree with @Boobaa here. This needs more work.
Comment #4
svenryen commentedOn second thought, I don't think we need hook_tokens, since yce wants to provide token(s) in another module. I think it makes sense to add this, though it should be noted to the user in the field description that the field supports tokens. Here's a patch that adds that explanation.
Comment #6
svenryen commented