You are here

function views_handler_field_node_new_comments::query in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 modules/comment/views_handler_field_node_new_comments.inc \views_handler_field_node_new_comments::query()
  2. 7.3 modules/comment/views_handler_field_node_new_comments.inc \views_handler_field_node_new_comments::query()

Called to add the field to a query.

Overrides views_handler_field::query

File

modules/comment/views_handler_field_node_new_comments.inc, line 42

Class

views_handler_field_node_new_comments
Field handler to display the number of new comments

Code

function query() {
  $this
    ->ensure_my_table();
  $this
    ->add_additional_fields();
  $this->field_alias = $this->table . '_' . $this->field;
}