a rough patch attached
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | mailchimp-600246.patch | 2.15 KB | spatical |
| mailchimp.module.patch | 5.98 KB | justafish |
a rough patch attached
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | mailchimp-600246.patch | 2.15 KB | spatical |
| mailchimp.module.patch | 5.98 KB | justafish |
Comments
Comment #1
levelos commentedThanks justafish, appreciate the help. At first glance, this patch doesn't reflect the role based assignment of each list, though. If you notice, the function get_available_lists, filters the available lists for a given user based on the roles their in. I didn't see a way around this and is why I actually gave up on the idea. Your thoughts?
Comment #2
spatical commentedHere is my patch for the functionality. I only slightly changed the hook_block method. How mine works, might not fit all situations. There is a block for each list. The method still uses get_available_lists. Notice the rc4 version.
For anonymous users it works great, now with separate blocks you can display the different opt-in forms in different places on your site.
For authenticated users every block turns into a update subscriptions block, so you may want to only leave one block visible for authenticated users, depending on your usage.
Comment #3
levelos commentedThanks for the patch. I took a bit of a different approach, but this is now implemented.
Comment #4
spatical commentedI tried your approach, by installing rc5 on my site. Works for me!