You are here

function mailchimp_webhook_key in Mailchimp 7.5

Same name and namespace in other branches
  1. 8 mailchimp.module \mailchimp_webhook_key()
  2. 7.2 mailchimp.module \mailchimp_webhook_key()
  3. 7.3 mailchimp.module \mailchimp_webhook_key()
  4. 7.4 mailchimp.module \mailchimp_webhook_key()

Generate a key to include in the webhook url based on a hash.

@string $list_id

Return value

string The key.

2 calls to mailchimp_webhook_key()
mailchimp_process_webhook_access in ./mailchimp.module
Access callback for mailchimp_process_webhook().
mailchimp_webhook_url in ./mailchimp.module
Generate the webhook endpoint URL.

File

./mailchimp.module, line 1651
Mailchimp module.

Code

function mailchimp_webhook_key() {
  return drupal_hash_base64($GLOBALS['base_url'] . drupal_get_private_key() . drupal_get_hash_salt());
}