You are here

function registration_anonymous_link_get in Entity Registration 7

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

Get a full link to view an anonymous registration, with access hash.

For backwards-compatibility with longstanding issue queue solution.

1 string reference to 'registration_anonymous_link_get'
RegistrationMetadataController::entityPropertyInfo in lib/registration.metadata.inc

File

./registration.module, line 302

Code

function registration_anonymous_link_get($registration, $options = array(), $name = "", $type = "") {

  // Create a link that can be used to access an anonymously created event from anywhere.
  $path = entity_uri('registration', $registration);
  $url = url($path['path'] . '/view/' . registration_anonymous_access_hash($registration), array(
    'absolute' => TRUE,
  ));
  return $url;
}