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. /**
  7. * @defgroup views_filter_module filter.module handlers
  8. *
  9. * Only includes the table 'filter_formats'.
  10. * @{
  11. */
  12. /**
  13. * Implementation of hook_views_data()
  14. */
  15. function filter_views_data() {
  16. // ----------------------------------------------------------------------
  17. // filter_formats table
  18. // Have not defined $data['filter_formats']['table']['group'] since
  19. // no fields are defined here yet.
  20. $data['filter_formats']['table']['join'] = array(
  21. 'node_revisions' => array(
  22. 'left_field' => 'format',
  23. 'field' => 'format',
  24. ),
  25. 'node' => array(
  26. 'left_table' => 'node_revisions',
  27. 'left_field' => 'format',
  28. 'field' => 'format',
  29. ),
  30. );
  31. return $data;
  32. }
  33. function filter_views_handlers() {
  34. return array(
  35. 'info' => array(
  36. 'path' => drupal_get_path('module', 'views') . '/modules/filter',
  37. ),
  38. 'handlers' => array(
  39. // field handlers
  40. 'views_handler_field_filter_format_name' => array(
  41. 'parent' => 'views_handler_field',
  42. ),
  43. ),
  44. );
  45. }
  46. /**
  47. * @}
  48. */