You are here

function node_registration_cancel_confirm in Node registration 7

Menu callback -- ask for confirmation of registration cancellation.

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

File

includes/node_registration.forms.inc, line 1139
New registration forms. Public and admin.

Code

function node_registration_cancel_confirm($form, &$form_state, $registration) {

  // Always provide entity id in the same form key as in the entity edit form.
  $form['#registration'] = $registration;
  $form['#submit'][] = 'node_registration_cancel_confirm_submit';
  $uri = node_registration_uri($registration);
  return confirm_form($form, t('Are you sure you want to cancel registration %title?', array(
    '%title' => $registration->registration_id,
  )), $uri['path'], t('This action cannot be undone.'), t('Cancel registration'), t('Cancel'));
}