function views_handler_argument_node_registration_uid::query in Node registration 7
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::query
File
- includes/
views/ views_handler_argument_node_registration_uid.inc, line 34
Class
Code
function query($group_by = FALSE) {
$this
->ensure_my_table();
if ($this->relationship && $this->query->relationships[$this->relationship]['link'] == "node") {
$this->query->table_queue[$this->table_alias]['join']->extra[] = array(
'table' => $this->table_alias,
'field' => $this->real_field,
'value' => $this->argument,
);
if (!$this->options['show_non_registered_nodes']) {
$this->query->table_queue[$this->table_alias]['join']->type = "INNER";
}
}
else {
$this->query
->add_where(0, "{$this->table_alias}.{$this->real_field}", $this->argument);
}
}