function rooms_availability_update_status_form_validate in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Validate callback for rooms_availability_update_status_form form.
1 string reference to 'rooms_availability_update_status_form_validate'
- rooms_availability_update_status_form in modules/
rooms_availability/ rooms_availability.module - Form to manage the availability for specific month.
File
- modules/
rooms_availability/ rooms_availability.module, line 317 - Manages availability for Bookable Units and displaying dates on the jquery FullCalendar plugin.
Code
function rooms_availability_update_status_form_validate(&$form, &$form_state) {
if ($form_state['values']['change_event_status'] == '') {
form_set_error('change_event_status', t('Select a valid status.'));
}
// Validate that a rooms is selected.
_rooms_select_rooms_validation($form_state);
}