1 views_handler_field.inc views_handler_field::click_sort($order)

Called to determine what to tell the clicksorter.

File

core/modules/views/handlers/views_handler_field.inc, line 164
@todo.

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.
    $params = $this->options['group_type'] != 'group' ? array('function' => $this->options['group_type']) : array();
    $this->query->add_orderby(NULL, NULL, $order, $this->field_alias, $params);
  }
}