Hi all,

Here is a small patch that maps Dropdown et Radios from MailChimp to Drupal FormAPI. With that newsletter subscription form displays nice widgets.

i.e. : no more textfield input when telling MailChimp form builder to render a dropdown.

I also added a test condition so that hidden fields (from MailChimp) renders hidden fields in Drupal.

Unfortunaltely, the MailChimp date input can't be supported easily for now.

Last, I just made a small modification to form validate, which was letting me subscribe to a newsletter even if I did not checked the box (the small '1' added).

Look at the patch.

Thank you guys!
Jérémy

CommentFileSizeAuthor
mailchimp-Drupal-FormAPI-6.diff3.05 KBjchatard

Comments

jchatard’s picture

Title: Map MailChimp input to Drupal FormAPI (path attached) » Map MailChimp input to Drupal FormAPI (patch attached)

grr, patch just takes a 'C'.

levelos’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Active » Needs review

Nice patch, applied. Needs some review. Also might want to add an switch for dates. Note applied to 6.x-2.x-dev

levelos’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.