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

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

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


Revision 1.4 - (show annotations) (download) (as text)
Sat Nov 22 03:11:45 2008 UTC (12 months ago) by mradcliffe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
File MIME type: text/x-php
  * reverting commit to main
1 <?php
2 /* $Id: og_titles.views.inc,v 1.1 2008/10/15 02:01:02 mradcliffe Exp $ */
3
4
5 /**
6 * basic views
7 */
8 function og_titles_views_data()
9 {
10 $data['og_uid_titles']['table']['group'] = t('Organic groups');
11
12 $data['og_uid_titles']['table']['join'] = array(
13 'users' => array(
14 'left_field' => 'uid',
15 'field' => 'uid',
16 ),
17 'og_uid' => array(
18 'left_field' => 'nid',
19 'field' => 'nid',
20 'extra' => ' {og_uid}.uid = {og_uid_titles}.uid',
21 ),
22 );
23
24 $data['og_uid_titles']['title'] = array(
25 'title' => t('Group Titles: Member Title'),
26 'help' => t('Display the title associated with the group member.'),
27 'field' => array(
28 'handler' => 'views_handler_field',
29 'click sortable' => TRUE,
30 ),
31 'filter' => array(
32 'handler' => 'views_handler_filter_string',
33 ),
34 'sort' => array(
35 'handler' => 'views_handler_sort',
36 )
37 );
38
39 return $data;
40
41 } // function og_titles_views_data
42

  ViewVC Help
Powered by ViewVC 1.1.2