views_handler_filter_node_tnid_child.inc

  1. 3.x modules/translation/views_handler_filter_node_tnid_child.inc
  2. 2.x modules/translation/views_handler_filter_node_tnid_child.inc

File

modules/translation/views_handler_filter_node_tnid_child.inc
View source
  1. <?php
  2. /**
  3. * Filter by whether the node is not the original translation.
  4. */
  5. class views_handler_filter_node_tnid_child extends views_handler_filter {
  6. function admin_summary() { }
  7. function operator_form(&$form, &$form_state) { }
  8. function can_expose() { return FALSE; }
  9. function query() {
  10. $table = $this->ensure_my_table();
  11. $this->query->add_where($this->options['group'], "$table.tnid <> $table.nid AND $table.tnid > 0");
  12. }
  13. }