public function views_handler_argument_tracker_comment_user_uid::query in Views (for Drupal 7) 7.3
Set up the query for this argument.
The argument sent may be found at $this->argument.
Parameters
bool $group_by: Whether the query uses a group-by.
Overrides views_handler_argument_comment_user_uid::query
File
- modules/
tracker/ views_handler_argument_tracker_comment_user_uid.inc, line 18 - Definition of views_handler_argument_tracker_comment_user_uid.
Class
- views_handler_argument_tracker_comment_user_uid
- UID argument to check for nodes that user posted or commented on.
Code
public function query($group_by = FALSE) {
// Because this handler thinks it's an argument for a field on the {node}
// table, we need to make sure {tracker_user} is JOINed and use its alias
// for the WHERE clause.
$tracker_user_alias = $this->query
->ensure_table('tracker_user');
$this->query
->add_where(0, "{$tracker_user_alias}.uid", $this->argument);
}