You are here

function views_handler_sort_watchdog_timestamp::query in Views Watchdog 7.3

Called to add the sort to a query.

Overrides views_handler_sort_date::query

File

views/handlers/views_handler_sort_watchdog_timestamp.inc, line 39
Views field handler for the views_watchdog module.

Class

views_handler_sort_watchdog_timestamp
Provides watchdog event ID as secondary sort for the timestamp field.

Code

function query() {
  parent::query();
  if (!empty($this->options['watchdog_timestamp_secondary_sort'])) {
    $this->query
      ->add_orderby(NULL, $this->table_alias . '.wid', $this->options['order']);
  }
}