function registration_anonymous_access_hash in Entity Registration 7.2
Same name and namespace in other branches
- 7 registration.module \registration_anonymous_access_hash()
Hash function used for enabling anonymous access to registrations.
Similar to user_pass_rehash().
2 calls to registration_anonymous_access_hash()
- registration_anonymous_link_get in ./
registration.module - Get a full link to view an anonymous registration, with access hash.
- registration_own_access in ./
registration.module - Define our own view/update/delete access.
1 string reference to 'registration_anonymous_access_hash'
File
- ./
registration.module, line 283
Code
function registration_anonymous_access_hash($registration, $options = array(), $name = "", $type = "") {
return drupal_hmac_base64($registration->created . $registration
->identifier(), drupal_get_hash_salt() . $registration->anon_mail);
}