function views_handler_field::click_sort
Same name in other branches
- 7.x-3.x handlers/views_handler_field.inc \views_handler_field::click_sort()
Called to determine what to tell the clicksorter.
1 method overrides views_handler_field::click_sort()
- views_handler_field_group_by_numeric::click_sort in handlers/
views_handler_field_group_by_numeric.inc - Called to determine what to tell the clicksorter.
File
-
handlers/
views_handler_field.inc, line 123
Class
- views_handler_field
- Base field handler that has no options and renders an unformatted field.
Code
function click_sort($order) {
if (isset($this->field_alias)) {
// Since fields should always have themselves already added, just
// add a sort on the field.
$this->query
->add_orderby(NULL, NULL, $order, $this->field_alias);
}
}