Closed (fixed)
Project:
Mailchimp
Version:
7.x-3.x-dev
Component:
General
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Mar 2015 at 15:44 UTC
Updated:
9 May 2015 at 14:22 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pranavpathak commentedIn order to add Send link option at mailchimp/campaigns page you can use below code in mailchimp_campaign.module file.
Comment #2
pranavpathak commentedComment #3
jami commentedHi pranavpathak. I think this is a good usability improvement, but it needs logic to check whether the campaign can be sent, and I'm currently prioritizing issues that are ready to ship. If you have time to add that logic, I can take another look.
You may already be familiar with these instructions and (understandably!) in a hurry, but it's easier to review and apply patches if they're submitted in the format described here:
https://www.drupal.org/patch/submit
Thank you for the code -- I do like having that Send link there!
Comment #4
pranavpathak commentedHi @Jami,
Thanks for your reply.
I am not export to create a patch file. However I tried.
Attached patch file is MailChimp-Needlink-2456469-1.patch and result will looks like mailchimp-patch-result.png.
Please let me know if I am wrong somewhere.
Comment #5
pranavpathak commentedComment #7
pranavpathak commentedIssue is updated and solved, updated patched is attached called MailChimp-Needlink-2456469-2.patch .
Comment #8
pranavpathak commentedComment #9
eojthebraveThis seems like a great feature addition.
I have a couple of thoughts on the latest patch.
1st. Drupal coding standards calls for the use of spaces (2x of them) instead of tabs for code indentation. So we should fix that.
Second. I looks like you can reduce some duplication in your code by building the links that are always present first, and then just adding the send link on to the end if it's appropriate. Pseudo code:
Comment #10
pranavpathak commentedHi @eojthebrave,
Patch file MailChimp-Needlink-2456469-3.patch is updated as per the instruction in #9.
Comment #11
pranavpathak commentedComment #12
eojthebraveThis line still has extra whitespace. But otherwise this looks good to me. I haven't actually tested the patch but the code looks good, and I think this is a good feature to add.
Comment #13
pranavpathak commentedHi,
New patch file is created called MailChimp-Needlink-2456469-4.patch, Apologies for whitespace error.
Kindly ignore #13 patch file and please read #15 patch file.
Comment #14
pranavpathak commentedComment #15
pranavpathak commentedComment #16
eojthebraveLooks good to me. Thanks @pranavpathak for both the awesome patch and for putting up with me being picky about whitespace.
Comment #18
jami commentedAdded the commit. Thanks for your work, pranavpathak and eojthebrave!
Comment #19
pranavpathak commented