function rooms_booking_type_form_submit in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Form API submit callback for the type form.
File
- modules/
rooms_booking/ rooms_booking_type.admin.inc, line 77 - RoomsBooking type editing UI.
Code
function rooms_booking_type_form_submit(&$form, &$form_state) {
$booking_type = entity_ui_form_submit_build_entity($form, $form_state);
// Save and go back.
$booking_type
->save();
$form_state['redirect'] = 'admin/rooms/bookings/booking-types';
}