You are here

public function AnswersNewContentViewsHandler::query in Answers 7.4

Called to add the field to a query.

Overrides views_handler_field::query

File

./answers_views_handler_new_content.inc, line 30
Definition of AnswersNewContentViewsHandler.

Class

AnswersNewContentViewsHandler
Field handler to display new content in question listing.

Code

public function query() {
  global $user;
  if (!$user->uid) {
    return;
  }
  $this->field_alias = 'new_answers';
  $this
    ->ensure_my_table();
  $this
    ->add_additional_fields();
}