You are here

log.views.inc in Log entity 7

Log Views hooks.

File

includes/views/log.views.inc
View source
<?php

/**
 * @file
 * Log Views hooks.
 */

/**
 * Implements hook_views_data_alter().
 */
function log_views_data_alter(&$data) {

  // Override the default log timestamp field and sort handlers, to add an
  // additional sort by log ID.
  $data['log']['timestamp']['field']['handler'] = 'log_handler_field_timestamp';
  $data['log']['timestamp']['sort']['handler'] = 'log_handler_sort_timestamp';
}

Functions

Namesort descending Description
log_views_data_alter Implements hook_views_data_alter().