While working on a project to create new Drupal-side campaigns when one is created via Mailchimp, I needed to respond to Mailchimp webhook hits. Rather than adding another webhook endpoint I added a module_invoke_all in mailchimp_process_webhook.

An example invocation can be seen in my in-progress module: https://github.com/bnchdrff/mailchimp_campaigngrab/blob/master/mailchimp...

Could this patch be included in future releases?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bc’s picture

bc’s picture

Title: Add module hook for webhook » Add module hooks for webhook and admin actions
FileSize
644 bytes

also, a hook for allowing modules to add actions would be nice as well... my apologies if this should be a separate issue!

levelos’s picture

Status: Active » Fixed

Good idea, although your patch from #1 needed some work. Working version committed in 0bdb1191f482bf0d488df4fba299952499b90cb6. If you still want to pursue #2, lets do so in a new issue.

Status: Fixed » Closed (fixed)

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

bc’s picture

Issue summary: View changes

Oof. sorry about that malformed patch... pasted in funny. I opened another issue for the action hook.