commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / views / modules / translation / views_handler_filter_node_tnid_child.inc
1 <?php
2
3 /**
4 * @file
5 * Definition of views_handler_filter_node_tnid_child.
6 */
7
8 /**
9 * Filter by whether the node is not the original translation.
10 *
11 * @ingroup views_filter_handlers
12 */
13 class views_handler_filter_node_tnid_child extends views_handler_filter {
14 function admin_summary() { }
15 function operator_form(&$form, &$form_state) { }
16 function can_expose() { return FALSE; }
17
18 function query() {
19 $table = $this->ensure_my_table();
20 $this->query->add_where_expression($this->options['group'], "$table.tnid <> $table.nid AND $table.tnid > 0");
21 }
22 }