function rooms_booking_handler_nights_field::click_sort in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Called to determine what to tell the clicksorter.
Overrides views_handler_field::click_sort
File
- modules/
rooms_booking/ views/ rooms_booking_handler_nights_field.inc, line 12
Class
Code
function click_sort($order) {
$params = $this->options['group_type'] != 'group' ? array(
'function' => $this->options['group_type'],
) : array();
$this->query
->add_orderby(NULL, NULL, $order, $this->field_alias, $params);
}