comparison og_statistics.views.inc @ 2:48f07e7acaca

OG Stats 1.0-rc2
author Franck Deroche <franck@defr.org>
date Tue, 24 Nov 2009 14:27:37 +0100
parents 9ce879ecbce6
children
comparison
equal deleted inserted replaced
0:9ce879ecbce6 2:48f07e7acaca
1 <?php 1 <?php
2 // $Id: og_statistics.views.inc,v 1.2.2.1 2009/06/18 17:02:45 dereine Exp $ 2 // $Id: og_statistics.views.inc,v 1.2.2.2 2009/08/12 19:53:28 dereine Exp $
3 3
4 /** 4 /**
5 * @file 5 * @file
6 * Views Integration of og_statitics. 6 * Views Integration of og_statitics.
7 */ 7 */
88 ), 88 ),
89 'sort' => array( 89 'sort' => array(
90 'handler' => 'views_handler_sort_date', 90 'handler' => 'views_handler_sort_date',
91 ), 91 ),
92 ); 92 );
93
94 // Add relationship to node table for last node posted.
95 $data['og_statistics']['last_node_nid'] = array(
96 'title' => 'Group Statistic: Last Node posted',
97 'help' => 'Create a relationship to for the last node posted',
98 'relationship' => array(
99 'handler' => 'views_handler_relationship',
100 'base' => 'node',
101 'field' => 'nid',
102 'label' => t('node'),
103 ),
104 );
105 // Add relationship to user table for last node posted.
106 $data['og_statistics']['last_node_uid'] = array(
107 'title' => 'Group Statistic: User that created the last node posted',
108 'help' => 'Create a relationship to the user that last posted a node.',
109 'relationship' => array(
110 'handler' => 'views_handler_relationship',
111 'base' => 'users',
112 'field' => 'uid',
113 'label' => t('user'),
114 ),
115 );
116
117 // Add relationship to node table for last comment posted.
118 $data['og_statistics']['last_comment_nid'] = array(
119 'title' => 'Group Statistic: Node the last comment was posted to',
120 'help' => 'Create a relationship to the last comment posted',
121 'relationship' => array(
122 'handler' => 'views_handler_relationship',
123 'base' => 'node',
124 'field' => 'nid',
125 'label' => t('node'),
126 ),
127 );
128 // Add relationship to user table for last comment posted.
129 $data['og_statistics']['last_comment_uid'] = array(
130 'title' => 'Group Statistic: User that posted the last comment',
131 'help' => 'Create a relationship to the user that last posted a comment.',
132 'relationship' => array(
133 'handler' => 'views_handler_relationship',
134 'base' => 'users',
135 'field' => 'uid',
136 'label' => t('user'),
137 ),
138 );
139 // Add relationship to the comment table for the last comment posted.
140 $data['og_statistics']['last_comment_cid'] = array(
141 'title' => 'Group Statistic: Comment last posted',
142 'help' => 'Create a relationship to the last comment posted',
143 'relationship' => array(
144 'handler' => 'views_handler_relationship',
145 'base' => 'comments',
146 'field' => 'cid',
147 'label' => t('comment'),
148 ),
149 );
150
151 // Add relationship to the users table for the last member.
152 $data['og_statistics']['last_member_uid'] = array(
153 'title' => 'Group Statistic: Last member to join',
154 'help' => 'Create a relationship to the last user to join',
155 'relationship' => array(
156 'handler' => 'views_handler_relationship',
157 'base' => 'users',
158 'field' => 'uid',
159 'label' => t('user'),
160 ),
161 );
162
93 return $data; 163 return $data;
94 } 164 }
95 165