function uc_product_handler_field_display_price::click_sort in Ubercart 7.3
Overrides views_handler_field::click_sort().
Overrides views_handler_field::click_sort
File
- uc_product/
views/ uc_product_handler_field_display_price.inc, line 37 - Views handler: Product price field.
Class
- uc_product_handler_field_display_price
- Returns a formatted price value to display in the View.
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, 'sell_price', $params);
}