You are here

function rooms_booking_delete_form in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7

Form callback: confirmation form for deleting a booking.

Parameters

$booking: The booking to delete.

See also

confirm_form()

1 string reference to 'rooms_booking_delete_form'
rooms_booking_delete_form_wrapper in modules/rooms_booking/rooms_booking.admin.inc
Form callback wrapper: delete a booking.

File

modules/rooms_booking/rooms_booking.admin.inc, line 1376
Rooms editing UI.

Code

function rooms_booking_delete_form($form, &$form_state, $booking) {
  $form_state['rooms_booking'] = $booking;
  $form['#submit'][] = 'rooms_booking_delete_form_submit';
  $form = confirm_form($form, t('Are you sure you want to delete Booking %name?', array(
    '%name' => $booking->name,
  )), 'admin/rooms/bookings/booking', '<p>' . t('This action cannot be undone.') . '</p>', t('Delete'), t('Cancel'), 'confirm');
  return $form;
}