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

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

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


Revision 1.1 - (show annotations) (download) (as text)
Wed Nov 26 19:42:21 2008 UTC (12 months ago) by marcp
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, DRUPAL-6--1-1, DRUPAL-6--1-2, DRUPAL-6--1-3, HEAD
Branch point for: DRUPAL-6--1
File MIME type: text/x-php
Drupal 6.x port.
1 <?php
2 // $Id$
3
4 /**
5 * Implementation of hook_views_data().
6 */
7 function og_reg_keys_views_data() {
8 $data = array(
9 'og_reg_keys' => array(
10 'table' => array(
11 'group' => t('Organic groups'),
12 'join' => array(
13 'node' => array(
14 'left_field' => 'nid',
15 'field' => 'nid'
16 )
17 )
18 ),
19 'code' => array(
20 'title' => t('Og_reg_keys: Registration key'),
21 // Information for displaying the registration key
22 'field' => array(
23 'handler' => 'views_handler_field',
24 'click sortable' => FALSE,
25 'help' => t('The registration key for a group.'),
26 ),
27 ),
28 'editlink' => array(
29 'title' => t('Og_reg_keys: Group edit link'),
30 // Information for displaying the registration key
31 'field' => array(
32 'handler' => 'og_reg_keys_handler_field_group_edit_link',
33 'click sortable' => FALSE,
34 'help' => t('Link to edit the registration key for a group.'),
35 ),
36 ),
37 )
38 );
39
40 return $data;
41 }

  ViewVC Help
Powered by ViewVC 1.1.2