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

Definition of views_handler_filter_node_tnid_child.

File

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