You are here

function node_registration_delete_confirm in Node registration 7

Confirm delete registration.

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

File

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

Code

function node_registration_delete_confirm($form, &$form_state, $registration) {
  $form['#registration'] = $registration;
  $form['#submit'][] = 'node_registration_delete_confirm_submit';
  $uri = node_registration_uri($registration);
  return confirm_form($form, t('Are you sure you want to delete registration %title?', array(
    '%title' => $registration->registration_id,
  )), $uri['path'], t('This action cannot be undone.'), t('Delete registration'), t('Cancel'));
}