You are here

function node_registration_register_page in Node registration 7

Page callback for adding a registration.

1 string reference to 'node_registration_register_page'
node_registration_menu in ./node_registration.module
Implements hook_menu().

File

./node_registration.module, line 933

Code

function node_registration_register_page($node, $account = NULL) {
  drupal_set_title(t('Register for @title', array(
    '@title' => $node->title,
  )), PASS_THROUGH);

  // Create empty registration.
  $registration = entity_get_controller('node_registration')
    ->create(array(
    'nid' => $node->nid,
    'node' => $node,
  ));
  return drupal_get_form('node_registration_form', $registration, $account);
}