function update_unit_pricing_form_submit in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Submit callback form update_unit_pricing_form form.
See also
1 string reference to 'update_unit_pricing_form_submit'
- update_unit_pricing_form in modules/
rooms_pricing/ rooms_pricing.module - A basic form that allows us to update the state of the calendar.
File
- modules/
rooms_pricing/ rooms_pricing.module, line 262 - Manages pricing for Bookable Units and displaying dates on the jquery FullCalendar plugin.
Code
function update_unit_pricing_form_submit(&$form, &$form_state) {
list($start_date, $end_date) = rooms_form_input_get_start_end_dates($form_state);
$operation = $form_state['values']['operation'];
$amount = $form_state['values']['amount'];
$unit_id = $form_state['values']['unit_id'];
$days = array_filter($form_state['values']['day_options']);
rooms_pricing_update_calendar_event($unit_id, $amount, $start_date, $end_date, $operation, $days);
}