Lightweight Webform Mailchimp Logo

This project is not covered by Drupal’s security advisory policy.

What is Lightweight Webform Mailchimp Module?

Lightweight Webform Mailchimp (LWM) It's a simple module that only supports a single use case: loads email addresses into a Mailchimp list / audience by sending information from a classic subscription form in your Drupal installation.


This module provides the easiest, most effective and fastest way to save new contacts into a list / audience and adds a tag to them. Basic actions if your project is small or your forms are simple . Unlike other related resources, this module does not require any dependencies, nor does it require you to have Mailchimp installed in your Drupal installation. It's just an "on the fly" solution: download, activate, complete the configuration settings and you're done!.


Single Case of Use

  1. Prerequisites: you will need a form based in webform and a Mailchimp Account API Key.
  2. You got a subscription form build with webform and you want save the new contacts in your Mailchimp account.
  3. Just download the module using Composer and enable it with drush.
  4. Then you go to /admin/config/development/lwm and set the configuration values for the module.
  5. The module will work just after the first submission and will load the new contacts in your selected list / audience in Mailchimp.

Extend / Change

This module is only using the hook_ENTITY_TYPE_presave() for webform_submissions entity type, so you can change this using another kind of entity or directly changing by another related hook.

/**
 * Implements hook_ENTITY_TYPE_presave().
 */
function lwm_webform_submission_presave(WebformSubmissionInterface $webform_submission) {
[...]
}

Roadmap

The LWM Module is just a simple idea executed in (little) spare time. Is not a very extensive or very advanced development, but to move it forward, it requires some more advanced functional work. You can consult (and colaborate) the future development in this Issue as a roadmap of the project:
https://www.drupal.org/project/lwm/issues/3207126


Other Mailchimp related resources

If you need to cover more complex use cases, I recommend using other modules like:

Credits

The main logo for lwm was created using as base image an icon designed by iconixar from www.flaticon.es in the collection Animal.

Project information

Releases