rsvp_delete_form($rid)
rsvp/rsvp.module, line 1149
$rsvp The rsvp instance to confirm deletion for.
<?php
function rsvp_delete_form($rid) {
$rsvp = rsvp_load($rid);
if (!$rsvp->rid) {
drupal_set_message(t('The rsvp you requested does not exist.'));
drupal_goto('rsvp/manage');
}
$form = array();
$form['rid'] = array(
'#type' => 'hidden',
'#value' => $rsvp->rid,
);
$form['nid'] = array(
'#type' => 'hidden',
'#value' => $rsvp->nid,
);
return confirm_form($form,
t('Are you sure you want to delete %name?', array('%name' => $rsvp->name)),
'rsvp/'. check_url(arg(1)) .'/edit',
t('This action cannot be undone.'),
t('Delete'), t('Cancel'));
}
?>