You are here

function filter_views_data in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 8.3 modules/filter.views.inc \filter_views_data()
  2. 6.2 modules/filter.views.inc \filter_views_data()
  3. 7.3 modules/filter.views.inc \filter_views_data()

Implementation of hook_views_data()

Related topics

File

modules/filter.views.inc, line 17
Provide basic views data for filter.module.

Code

function filter_views_data() {

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