filter.views.inc

Same filename in other branches
  1. 6.x-3.x modules/filter.views.inc

Provide basic views data for filter.module.

File

modules/filter.views.inc

View source
<?php


/**
 * @file
 * Provide basic views data for filter.module.
 *
 * @ingroup views_module_handlers
 */

/**
 * 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;
}

Related topics

Functions

Title Deprecated Summary
filter_views_data Implements hook_views_data().