You are here

function registration_anonymous_access_hash in Entity Registration 7

Same name and namespace in other branches
  1. 7.2 registration.module \registration_anonymous_access_hash()

Hash function used for enabling anonymous access to registrations.

Similar to user_pass_rehash().

3 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_get_properties in ./registration.module
Required by RegistrationMetadataController for Views integration.
registration_own_access in ./registration.module
Define our own view/update/delete access.
1 string reference to 'registration_anonymous_access_hash'
RegistrationMetadataController::entityPropertyInfo in lib/registration.metadata.inc

File

./registration.module, line 293

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);
}