mailchimp.api.php in Mailchimp 7.3
Same filename and directory in other branches
Mailchimp hook definitions.
File
mailchimp.api.phpView source
<?php
/**
* @file
* Mailchimp hook definitions.
*/
/**
* Alter mergevars before they are sent to MailChimp.
*
* @param array $mergevars
* @param object $entity
* @param string $entity_type
*
* @return NULL
*/
function hook_mailchimp_lists_mergevars_alter(&$mergevars, $entity, $entity_type) {
}
/**
* Perform an action during the firing of a MailChimp webhook.
*
* Refer to http://apidocs.mailchimp.com/webhooks for more details.
*
* @string $type
* The type of webhook firing.
* @array $data
* The data contained in the webhook.
*/
function hook_mailchimp_process_webhook($type, $data) {
}
/**
* Perform an action after a subscriber has been subscribed.
*
* @string $list_id
* MailChimp list id.
* @string $email
* Subscriber email address.
* @array $merge_vars
* Submitted user values.
*/
function hook_mailchimp_subscribe_user($list_id, $email, $merge_vars) {
}
/**
* Perform an action after a subscriber has been unsubscribed.
*
* @string $list_id
* MailChimp list id.
* @string $email
* Subscriber email address.
*/
function hook_mailchimp_unsubscribe_user($list_id, $email) {
}
Functions
Name | Description |
---|---|
hook_mailchimp_lists_mergevars_alter | Alter mergevars before they are sent to MailChimp. |
hook_mailchimp_process_webhook | Perform an action during the firing of a MailChimp webhook. |
hook_mailchimp_subscribe_user | Perform an action after a subscriber has been subscribed. |
hook_mailchimp_unsubscribe_user | Perform an action after a subscriber has been unsubscribed. |