You are here

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

Display the filter on the administrative summary.

Overrides views_handler_filter_in_operator::admin_summary

File

modules/rooms_booking/views/rooms_booking_handler_unit_filter.inc, line 233

Class

rooms_booking_handler_unit_filter
@file

Code

function admin_summary() {
  $this->value_options = array();
  if ($this->value) {
    $this->value = array_filter($this->value);
    $result = rooms_unit_load_multiple($this->value);
    foreach ($result as $entity) {
      $this->value_options[$entity->unit_id] = entity_label('rooms_unit', $entity);
    }
  }
  return parent::admin_summary();
}