summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.15/sites/all/modules/views/modules/filter.views.inc
blob: c13d8872accbb0d9f0f19a989f8270ce199bcd2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
 * @file
 * Provide basic views data for filter.module.
 */

/**
 * @defgroup views_filter_module filter.module handlers
 *
 * Only includes the table 'filter_formats'.
 * @{
 */

/**
 * Implements hook_views_data()
 */
function filter_views_data() {
  // ----------------------------------------------------------------------
  // filter_format table

  // Have not defined $data['filter_formats']['table']['group'] since
  // no fields are defined here yet.
  $data['filter_formats']['moved to'] = 'filter_format';
  $data['filter_format']['table']['join'] = array(
    'node_revision' => array(
      'left_field' => 'format',
      'field' => 'format',
    ),
    'node' => array(
      'left_table' => 'node_revision',
      'left_field' => 'format',
      'field' => 'format',
    ),
  );

  return $data;
}

/**
 * @}
 */