You are here

function views_query_handler_field_last_changed in Views (for Drupal 7) 5

1 string reference to 'views_query_handler_field_last_changed'
comment_views_tables in modules/views_comment.inc
This include file implements views functionality on behalf of comment.module

File

modules/views_comment.inc, line 186

Code

function views_query_handler_field_last_changed($field, $fieldinfo, &$query) {
  $query
    ->ensure_table('node_comment_statistics');
  $query
    ->add_field('GREATEST(node.changed, node_comment_statistics.last_comment_timestamp)', '', $field['tablename'] . '_last_changed');
}