You are here

function simplenews_generate_old_hash in Simplenews 7.2

Generate a hash key in the old format.

2 calls to simplenews_generate_old_hash()
SimplenewsSubscribeTestCase::testSubscribeAnonymous in tests/simplenews.test
testSubscribeAnonymous
SimplenewsSubscribeTestCase::testSubscribeMultiple in tests/simplenews.test
Subscribe to multiple newsletters at the same time.

File

./simplenews.module, line 2191
Simplenews node handling, sent email, newsletter block and general hooks

Code

function simplenews_generate_old_hash($mail, $snid, $newsletter_id) {
  return drupal_substr(md5($mail . simplenews_private_key()), 0, 10) . $snid . 't' . $newsletter_id;
}