You are here

function mailchimp_lists_default_webhook_events in Mailchimp 8

Same name and namespace in other branches
  1. 2.x modules/mailchimp_lists/mailchimp_lists.module \mailchimp_lists_default_webhook_events()

Gets an array of default Mailchimp webhook event names.

Return value

array Default webhook event names, indexed by the IDs used by the Mailchimp API.

2 calls to mailchimp_lists_default_webhook_events()
MailchimpListsController::overview in modules/mailchimp_lists/src/Controller/MailchimpListsController.php
MailchimpListsWebhookSettingsForm::buildForm in modules/mailchimp_lists/src/Form/MailchimpListsWebhookSettingsForm.php
Form constructor.

File

modules/mailchimp_lists/mailchimp_lists.module, line 555
Mailchimp lists/audiences module.

Code

function mailchimp_lists_default_webhook_events() {
  return [
    'subscribe' => 'Subscribes',
    'unsubscribe' => 'Unsubscribes',
    'profile' => 'Profile Updates',
    'cleaned' => 'Cleaned Emails',
    'upemail' => 'Email Address Changes',
    'campaign' => 'Campaign Sending Status',
  ];
}