function mailchimp_webhook_key in Mailchimp 7.4
Same name and namespace in other branches
- 8 mailchimp.module \mailchimp_webhook_key()
- 7.5 mailchimp.module \mailchimp_webhook_key()
- 7.2 mailchimp.module \mailchimp_webhook_key()
- 7.3 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 1477 - Mailchimp module.
Code
function mailchimp_webhook_key() {
return drupal_hash_base64($GLOBALS['base_url'] . drupal_get_private_key() . drupal_get_hash_salt());
}