function _simplenews_generate_hash in Simplenews 6
Same name and namespace in other branches
- 5 simplenews.module \_simplenews_generate_hash()
- 6.2 simplenews.module \_simplenews_generate_hash()
Generate the hash key used for subscribe/unsubscribe link.
1 call to _simplenews_generate_hash()
- simplenews_mail_tokens in ./
simplenews.module - Build array of mail tokens.
File
- ./
simplenews.module, line 2339 - Simplnews node handling, sent email, newsletter block and general hooks
Code
function _simplenews_generate_hash($mail, $snid, $tid) {
return drupal_substr(md5($mail . simplenews_private_key()), 0, 10) . $snid . 't' . $tid;
}