You are here

function node_registration_uri in Node registration 7

URI callback for the Node registration type.

12 calls to node_registration_uri()
node-registration-message-registered.tpl.php in templates/node-registration-message-registered.tpl.php
NodeRegistrationEntityClass::buildContent in includes/node_registration.entity.inc
Override buildContent() to add registration properties.
node_registration_cancel_confirm in includes/node_registration.forms.inc
Menu callback -- ask for confirmation of registration cancellation.
node_registration_delete_confirm in includes/node_registration.forms.inc
Confirm delete registration.
node_registration_form in includes/node_registration.forms.inc
The registration form. It takes a (mandatory) existing or empty registration object.

... See full list

1 string reference to 'node_registration_uri'
node_registration_entity_info in includes/node_registration.entity.inc
Implements hook_entity_info().

File

includes/node_registration.entity.inc, line 97
Entity hooks and callbacks for registrations.

Code

function node_registration_uri($registration) {
  $registration_id = is_scalar($registration) ? (int) $registration : (int) $registration->registration_id;
  return array(
    'path' => 'registration/' . $registration_id,
  );
}