You are here

public function views_handler_field_node_new_comments::query in Views (for Drupal 7) 7.3

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. 6.2 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 66
Definition of views_handler_field_node_new_comments.

Class

views_handler_field_node_new_comments
Field handler to display the number of new comments.

Code

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