function views_handler_filter_node_tnid_child::query
3.x views_handler_filter_node_tnid_child.inc | views_handler_filter_node_tnid_child::query() |
2.x views_handler_filter_node_tnid_child.inc | views_handler_filter_node_tnid_child::query() |
Add this filter to the query.
Due to the nature of fapi, the value and the operator have an unintended level of indirection. You will find them in $this->operator and $this->value respectively.
Overrides views_handler_filter::query
File
- modules/
translation/ views_handler_filter_node_tnid_child.inc, line 18 - Definition of views_handler_filter_node_tnid_child.
Class
- views_handler_filter_node_tnid_child
- Filter by whether the node is not the original translation.
Code
function query() {
$table = $this->ensure_my_table();
$this->query->add_where_expression($this->options['group'], "$table.tnid <> $table.nid AND $table.tnid > 0");
}