You are here

function bat_event_delete_form in Booking and Availability Management Tools for Drupal 7

Form callback: confirmation form for deleting a event.

Parameters

BatEvent $event: The event to delete.

See also

confirm_form()

1 string reference to 'bat_event_delete_form'
bat_event_delete_form_wrapper in modules/bat_event/bat_event.admin.inc
Form callback wrapper: delete a event.

File

modules/bat_event/bat_event.admin.inc, line 556
Unit event editing UI.

Code

function bat_event_delete_form($form, &$form_state, BatEvent $event) {
  $form_state['bat_event'] = $event;
  $form['#submit'][] = 'bat_event_delete_form_submit';
  $form = confirm_form($form, t('Are you sure you want to delete Event ?'), 'admin/bat/events/event', '<p>' . t('This action cannot be undone.') . '</p>', t('Delete'), t('Cancel'), 'confirm');
  return $form;
}