You are here

public function bat_event_handler_blocking_filter::get_value_options in Booking and Availability Management Tools for Drupal 7

Return the possible options for this filter.

Child classes should override this function to set the possible values for the filter. Since this is a boolean filter, the array should have two possible keys: 1 for "True" and 0 for "False", although the labels can be whatever makes sense for the filter. These values are used for configuring the filter, when the filter is exposed, and in the admin summary of the filter. Normally, this should be static data, but if it's dynamic for some reason, child classes should use a guard to reduce database hits as much as possible.

Overrides views_handler_filter_boolean_operator::get_value_options

1 call to bat_event_handler_blocking_filter::get_value_options()
bat_event_handler_blocking_filter::admin_summary in modules/bat_event/views/bat_event_handler_blocking_filter.inc
Display the filter on the administrative summary.

File

modules/bat_event/views/bat_event_handler_blocking_filter.inc, line 24

Class

bat_event_handler_blocking_filter

Code

public function get_value_options() {
  $options = array(
    'blocking' => t('Blocking'),
    'not_blocking' => t('Not blocking'),
  );
  $this->value_options = $options;
}