Problem/Motivation
I used the mandrill module on a project and needed to add some functionality. (Module works great, thanks!) I created a custom module for my project that allows site administrators to add a user's email address to Mandrill's unsubscribe/reject list. I created my own copy of mandrill_get_api_object() so that I could create an object from a custom class that inherits the Mandrill class. This works but it now requires duplicate maintenance of that function moving forward.
Proposed resolution
Add parameter to mandrill_get_api_object() to specify a class name. This will allow modules to create classes that inherit DrupalMandrill and call mandrill_get_api_object(FALSE, 'DrupalMandrillFooBar');.
Remaining tasks
- review patch
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | mandrill-classname_parameter-2220663-D7.patch | 739 bytes | daven |
Comments
Comment #1
daven commentedComment #2
daven commentedAlso, I hope to share my "mandrill_user" module. I could create a new drupal project for it or submit it as a submodule in the main mandrill project. Do the mandrill module maintainers have a preference for this?
thanks,
Dave
Comment #3
levelos commented@daven, patch applied. I'm not sure about the mandrill_user module, at least for now. Thanks.