public function views_handler_field::click_sort in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 handlers/views_handler_field.inc \views_handler_field::click_sort()
- 6.2 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_field::click_sort in modules/
field/ views_handler_field_field.inc - Called to determine what to tell the clicksorter.
File
- handlers/
views_handler_field.inc, line 192 - Definition of views_handler_field.
Class
- views_handler_field
- Base field handler that has no options and renders an unformatted field.
Code
public function click_sort($order) {
if (isset($this->field_alias)) {
// Since fields should always have themselves already added, just
// add a sort on the field.
$params = $this->options['group_type'] != 'group' ? array(
'function' => $this->options['group_type'],
) : array();
$this->query
->add_orderby(NULL, NULL, $order, $this->field_alias, $params);
}
}