function rooms_booking_handler_filter_booking_status::get_value_options in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Child classes should be used to override this function and set the 'value options', unless 'options callback' is defined as a valid function or static public method to generate these values.
This can use a guard to be used to reduce database hits as much as possible.
Return value
Return the stored values in $this->value_options if someone expects it.
Overrides views_handler_filter_in_operator::get_value_options
File
- modules/
rooms_booking/ views/ rooms_booking_handler_filter_booking_status.inc, line 9 - Contains a Views field handler to take care of filter booking status options.
Class
- rooms_booking_handler_filter_booking_status
- @file Contains a Views field handler to take care of filter booking status options.
Code
function get_value_options() {
$options = array(
'0' => 'Unconfirmed',
'1' => 'Confirmed',
);
$this->value_options = $options;
}