/[drupal]/contributions/modules/views/modules/filter.views.inc
ViewVC logotype

Contents of /contributions/modules/views/modules/filter.views.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Wed Jun 3 19:06:05 2009 UTC (5 months, 3 weeks ago) by merlinofchaos
Branch: MAIN
CVS Tags: DRUPAL-6--2-7, DRUPAL-6--2-6, HEAD
Branch point for: DRUPAL-6--2, DRUPAL-6--3, DRUPAL-7--3
File MIME type: text/x-php
Whoops, forgot to add these files.
1 <?php
2 // $Id$
3 /**
4 * @file
5 * Provide basic views data for filter.module.
6 */
7
8 /**
9 * @defgroup views_filter_module filter.module handlers
10 *
11 * Only includes the table 'filter_formats'.
12 * @{
13 */
14
15 /**
16 * Implementation of hook_views_data()
17 */
18 function filter_views_data() {
19 // ----------------------------------------------------------------------
20 // filter_formats table
21
22 // Have not defined $data['filter_formats']['table']['group'] since
23 // no fields are defined here yet.
24 $data['filter_formats']['table']['join'] = array(
25 'node_revisions' => array(
26 'left_field' => 'format',
27 'field' => 'format',
28 ),
29 'node' => array(
30 'left_table' => 'node_revisions',
31 'left_field' => 'format',
32 'field' => 'format',
33 ),
34 );
35
36 return $data;
37 }
38
39 function filter_views_handlers() {
40 return array(
41 'info' => array(
42 'path' => drupal_get_path('module', 'views') . '/modules/filter',
43 ),
44 'handlers' => array(
45 // field handlers
46 'views_handler_field_filter_format_name' => array(
47 'parent' => 'views_handler_field',
48 ),
49 ),
50 );
51 }
52
53 /**
54 * @}
55 */

  ViewVC Help
Powered by ViewVC 1.1.2