function registration_delete_confirm in Entity Registration 8.2
Same name and namespace in other branches
- 8 includes/registration.forms.inc \registration_delete_confirm()
- 7.2 includes/registration.forms.inc \registration_delete_confirm()
- 7 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 - @FIXME This implementation of hook_menu() cannot be automatically converted because it contains logic (i.e., branching statements, function calls, object instantiation, etc.) You will need to convert it manually. Sorry!
File
- includes/
registration.forms.inc, line 387 - 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'));
}