filter.views.inc

  1. 3.x modules/filter.views.inc
  2. 2.x modules/filter.views.inc

Provide basic views data for filter.module.

File

modules/filter.views.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Provide basic views data for filter.module.
  5. *
  6. * @ingroup views_module_handlers
  7. */
  8. /**
  9. * Implements hook_views_data().
  10. */
  11. function filter_views_data() {
  12. // ----------------------------------------------------------------------
  13. // filter_format table
  14. // Have not defined $data['filter_formats']['table']['group'] since
  15. // no fields are defined here yet.
  16. $data['filter_formats']['moved to'] = 'filter_format';
  17. $data['filter_format']['table']['join'] = array(
  18. 'node_revision' => array(
  19. 'left_field' => 'format',
  20. 'field' => 'format',
  21. ),
  22. 'node' => array(
  23. 'left_table' => 'node_revision',
  24. 'left_field' => 'format',
  25. 'field' => 'format',
  26. ),
  27. );
  28. return $data;
  29. }

Related topics