You are here

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

Form API submit callback for the delete button.

@todo Remove hard-coded path

1 string reference to 'rooms_unit_form_submit_delete'
rooms_unit_edit_form in modules/rooms_unit/rooms_unit.admin.inc
Form callback: create or edit a unit.

File

modules/rooms_unit/rooms_unit.admin.inc, line 531
Rooms editing UI.

Code

function rooms_unit_form_submit_delete(&$form, &$form_state) {
  $form_state['redirect'] = 'admin/rooms/units/unit/' . $form_state['rooms_unit']->unit_id . '/delete';
}