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.
When you create a campaign from a node, the campaign is rendered as the logged-in user. This has the sideeffect that 'edit-link's' etc are getting out in the generated mail.
In my opinion the mail should be rendered as anonymous user! This might be handled by switching the user in function _mcc_body()
Comments
Comment #1
Sutharsan CreditAttribution: Sutharsan commentedUsing a fixed user to render the content can only be a temporary solution. In my experience with Simplenews (as maintainer for 3 years) site builders will ask for more. So I propose two changes:
Comment #2
Sutharsan CreditAttribution: Sutharsan commentedI discoverred that the module already defines a custom view mode 'MailChimp Campaign'. So my second suggestion is not applicable anymore. But I do have a requirement to set/select the language with which the content is rendered.
Currently the render language is the "Current language", this is probably the worst choice of all.[edit: wrong remark marked as deleted]
Comment #3
larsmw CreditAttribution: larsmw commented