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

Contents of /contributions/modules/og_reg_keys/og_reg_keys.views_default.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 (11 months, 4 weeks ago) by marcp
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, DRUPAL-6--1-1, DRUPAL-6--1-2, 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_default_views().
6 *
7 */
8 function og_reg_keys_views_default_views() {
9 $views = array();
10
11 $view = new view;
12 $view->name = 'og_reg_keys_edit';
13 $view->description = 'Display group registration keys';
14 $view->tag = 'og';
15 $view->view_php = '';
16 $view->base_table = 'node';
17 $view->is_cacheable = FALSE;
18 $view->api_version = 2;
19 $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
20 $handler = $view->new_display('default', 'Defaults', 'default');
21 $handler->override_option('fields', array(
22 'title' => array(
23 'label' => 'Group',
24 'link_to_node' => 1,
25 'exclude' => 0,
26 'id' => 'title',
27 'table' => 'node',
28 'field' => 'title',
29 'relationship' => 'none',
30 ),
31 'name' => array(
32 'label' => 'Manager',
33 'link_to_user' => 1,
34 'exclude' => 0,
35 'id' => 'name',
36 'table' => 'users',
37 'field' => 'name',
38 'relationship' => 'none',
39 ),
40 'code' => array(
41 'label' => 'Registration key',
42 'exclude' => 0,
43 'id' => 'code',
44 'table' => 'og_reg_keys',
45 'field' => 'code',
46 'relationship' => 'none',
47 ),
48 'edit_node' => array(
49 'label' => 'Edit registration key',
50 'text' => 'edit',
51 'exclude' => 0,
52 'id' => 'edit_node',
53 'table' => 'node',
54 'field' => 'edit_node',
55 'relationship' => 'none',
56 ),
57 ));
58 $handler->override_option('access', array(
59 'type' => 'none',
60 ));
61 $handler->override_option('items_per_page', 50);
62 $handler->override_option('use_pager', '1');
63 $handler->override_option('style_plugin', 'table');
64
65 $views['og_reg_keys_edit'] = $view;
66
67 return $views;
68 }

  ViewVC Help
Powered by ViewVC 1.1.2