function registration_delete_confirm in Entity Registration 7
Same name and namespace in other branches
- 8.2 includes/registration.forms.inc \registration_delete_confirm()
- 8 includes/registration.forms.inc \registration_delete_confirm()
- 7.2 includes/registration.forms.inc \registration_delete_confirm()
Menu callback -- ask for confirmation of node deletion.
1 string reference to 'registration_delete_confirm'
- registration_menu in ./
registration.module - Implements hook_menu().
File
- includes/
registration.forms.inc, line 364 - Form definitions and callbacks for Registration.
Code
function registration_delete_confirm($form, &$form_state, $registration) {
// Always provide entity id in the same form key as in the entity edit form.
$form['registration'] = array(
'#type' => 'value',
'#value' => $registration,
);
return confirm_form($form, t('Are you sure you want to delete registration %title?', array(
'%title' => $registration->registration_id,
)), 'registration/' . $registration->registration_id, t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}