You are here

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

Callback to remove children discount option.

1 string reference to 'rooms_booking_children_discount_remove_option'
rooms_booking_children_discount in modules/rooms_booking/rooms_booking.module
Form callback for rooms_booking_children_discount form.

File

modules/rooms_booking/rooms_booking.module, line 262
Manage Bookings - Bookings are tied to a customer profile and possible a Unit ID and Order ID.

Code

function rooms_booking_children_discount_remove_option($form, &$form_state) {
  if ($form_state['num_options'] > 1) {
    $form_state['num_options']--;
  }
  $form_state['rebuild'] = TRUE;
}