@@ -4,11 +4,11 @@ |
||
4 | 4 | * Implementation of hook_ctools_plugin_api(). |
5 | 5 | */ |
6 | 6 | function discussion_forums_ctools_plugin_api() { |
7 | - list($module, $api) = func_get_args(); |
|
8 | - if ($module == "context" && $api == "context") { |
|
7 | + list($module, $api) = func_get_args(); |
|
8 | + if ($module == "context" && $api == "context") { |
|
9 | 9 | return array("version" => 3); |
10 | - } |
|
11 | - elseif ($module == "strongarm" && $api == "strongarm") { |
|
10 | + } |
|
11 | + elseif ($module == "strongarm" && $api == "strongarm") { |
|
12 | 12 | return array("version" => 1); |
13 | - } |
|
13 | + } |
|
14 | 14 | } |
@@ -7,8 +7,7 @@ |
||
7 | 7 | list($module, $api) = func_get_args(); |
8 | 8 | if ($module == "context" && $api == "context") { |
9 | 9 | return array("version" => 3); |
10 | - } |
|
11 | - elseif ($module == "strongarm" && $api == "strongarm") { |
|
10 | + } elseif ($module == "strongarm" && $api == "strongarm") { |
|
12 | 11 | return array("version" => 1); |
13 | 12 | } |
14 | 13 | } |
@@ -4,13 +4,13 @@ |
||
4 | 4 | * Implementation of hook_role_export_defaults(). |
5 | 5 | */ |
6 | 6 | function discussion_forums_role_export_defaults() { |
7 | - $roles = array(); |
|
7 | + $roles = array(); |
|
8 | 8 | |
9 | - $roles['moderator'] = array( |
|
9 | + $roles['moderator'] = array( |
|
10 | 10 | 'rid' => '1271379760', |
11 | 11 | 'name' => 'moderator', |
12 | 12 | 'machine_name' => 'moderator', |
13 | - ); |
|
13 | + ); |
|
14 | 14 | |
15 | - return $roles; |
|
15 | + return $roles; |
|
16 | 16 | } |
@@ -4,8 +4,8 @@ |
||
4 | 4 | * Implementation of hook_ctools_plugin_api(). |
5 | 5 | */ |
6 | 6 | function user_account_project_list_ctools_plugin_api() { |
7 | - list($module, $api) = func_get_args(); |
|
8 | - if ($module == "panels_mini" && $api == "panels_default") { |
|
7 | + list($module, $api) = func_get_args(); |
|
8 | + if ($module == "panels_mini" && $api == "panels_default") { |
|
9 | 9 | return array("version" => 1); |
10 | - } |
|
10 | + } |
|
11 | 11 | } |
@@ -4,7 +4,7 @@ |
||
4 | 4 | * Implementation of hook_views_api(). |
5 | 5 | */ |
6 | 6 | function user_preferences_views_api() { |
7 | - return array( |
|
7 | + return array( |
|
8 | 8 | 'api' => '2', |
9 | - ); |
|
9 | + ); |
|
10 | 10 | } |
@@ -4,32 +4,32 @@ discard block |
||
4 | 4 | * Implementation of hook_views_default_views(). |
5 | 5 | */ |
6 | 6 | function team_forums_views_default_views() { |
7 | - $views = array(); |
|
7 | + $views = array(); |
|
8 | 8 | |
9 | - // Exported view: boinc_team_forum_topics |
|
10 | - $view = new view; |
|
11 | - $view->name = 'boinc_team_forum_topics'; |
|
12 | - $view->description = ''; |
|
13 | - $view->tag = ''; |
|
14 | - $view->base_table = 'boincteam_forum_node'; |
|
15 | - $view->core = 6; |
|
16 | - $view->api_version = '2'; |
|
17 | - $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
|
18 | - $handler = $view->new_display('default', 'Defaults', 'default'); |
|
19 | - $handler->override_option('relationships', array( |
|
9 | + // Exported view: boinc_team_forum_topics |
|
10 | + $view = new view; |
|
11 | + $view->name = 'boinc_team_forum_topics'; |
|
12 | + $view->description = ''; |
|
13 | + $view->tag = ''; |
|
14 | + $view->base_table = 'boincteam_forum_node'; |
|
15 | + $view->core = 6; |
|
16 | + $view->api_version = '2'; |
|
17 | + $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
|
18 | + $handler = $view->new_display('default', 'Defaults', 'default'); |
|
19 | + $handler->override_option('relationships', array( |
|
20 | 20 | 'nid' => array( |
21 | - 'label' => 'Team Forum Topic Node', |
|
22 | - 'required' => 1, |
|
23 | - 'id' => 'nid', |
|
24 | - 'table' => 'boincteam_forum_node', |
|
25 | - 'field' => 'nid', |
|
26 | - 'relationship' => 'none', |
|
21 | + 'label' => 'Team Forum Topic Node', |
|
22 | + 'required' => 1, |
|
23 | + 'id' => 'nid', |
|
24 | + 'table' => 'boincteam_forum_node', |
|
25 | + 'field' => 'nid', |
|
26 | + 'relationship' => 'none', |
|
27 | 27 | ), |
28 | - )); |
|
29 | - $handler->override_option('fields', array( |
|
28 | + )); |
|
29 | + $handler->override_option('fields', array( |
|
30 | 30 | 'title' => array( |
31 | - 'label' => 'Topic', |
|
32 | - 'alter' => array( |
|
31 | + 'label' => 'Topic', |
|
32 | + 'alter' => array( |
|
33 | 33 | 'alter_text' => 0, |
34 | 34 | 'text' => '', |
35 | 35 | 'make_link' => 0, |
@@ -48,21 +48,21 @@ discard block |
||
48 | 48 | 'ellipsis' => 1, |
49 | 49 | 'html' => 0, |
50 | 50 | 'strip_tags' => 0, |
51 | - ), |
|
52 | - 'empty' => '', |
|
53 | - 'hide_empty' => 0, |
|
54 | - 'empty_zero' => 0, |
|
55 | - 'hide_alter_empty' => 1, |
|
56 | - 'link_to_node' => 1, |
|
57 | - 'exclude' => 0, |
|
58 | - 'id' => 'title', |
|
59 | - 'table' => 'node', |
|
60 | - 'field' => 'title', |
|
61 | - 'relationship' => 'nid', |
|
51 | + ), |
|
52 | + 'empty' => '', |
|
53 | + 'hide_empty' => 0, |
|
54 | + 'empty_zero' => 0, |
|
55 | + 'hide_alter_empty' => 1, |
|
56 | + 'link_to_node' => 1, |
|
57 | + 'exclude' => 0, |
|
58 | + 'id' => 'title', |
|
59 | + 'table' => 'node', |
|
60 | + 'field' => 'title', |
|
61 | + 'relationship' => 'nid', |
|
62 | 62 | ), |
63 | 63 | 'comment_count' => array( |
64 | - 'label' => 'Replies', |
|
65 | - 'alter' => array( |
|
64 | + 'label' => 'Replies', |
|
65 | + 'alter' => array( |
|
66 | 66 | 'alter_text' => 0, |
67 | 67 | 'text' => '', |
68 | 68 | 'make_link' => 0, |
@@ -81,32 +81,32 @@ discard block |
||
81 | 81 | 'ellipsis' => 1, |
82 | 82 | 'html' => 0, |
83 | 83 | 'strip_tags' => 0, |
84 | - ), |
|
85 | - 'empty' => '0', |
|
86 | - 'hide_empty' => 0, |
|
87 | - 'empty_zero' => 0, |
|
88 | - 'hide_alter_empty' => 0, |
|
89 | - 'set_precision' => FALSE, |
|
90 | - 'precision' => 0, |
|
91 | - 'decimal' => '.', |
|
92 | - 'separator' => ',', |
|
93 | - 'format_plural' => 0, |
|
94 | - 'format_plural_singular' => '1', |
|
95 | - 'format_plural_plural' => '@count', |
|
96 | - 'prefix' => '', |
|
97 | - 'suffix' => '', |
|
98 | - 'exclude' => 0, |
|
99 | - 'id' => 'comment_count', |
|
100 | - 'table' => 'node_comment_statistics', |
|
101 | - 'field' => 'comment_count', |
|
102 | - 'relationship' => 'nid', |
|
103 | - 'override' => array( |
|
84 | + ), |
|
85 | + 'empty' => '0', |
|
86 | + 'hide_empty' => 0, |
|
87 | + 'empty_zero' => 0, |
|
88 | + 'hide_alter_empty' => 0, |
|
89 | + 'set_precision' => FALSE, |
|
90 | + 'precision' => 0, |
|
91 | + 'decimal' => '.', |
|
92 | + 'separator' => ',', |
|
93 | + 'format_plural' => 0, |
|
94 | + 'format_plural_singular' => '1', |
|
95 | + 'format_plural_plural' => '@count', |
|
96 | + 'prefix' => '', |
|
97 | + 'suffix' => '', |
|
98 | + 'exclude' => 0, |
|
99 | + 'id' => 'comment_count', |
|
100 | + 'table' => 'node_comment_statistics', |
|
101 | + 'field' => 'comment_count', |
|
102 | + 'relationship' => 'nid', |
|
103 | + 'override' => array( |
|
104 | 104 | 'button' => 'Override', |
105 | - ), |
|
105 | + ), |
|
106 | 106 | ), |
107 | 107 | 'created' => array( |
108 | - 'label' => 'Created', |
|
109 | - 'alter' => array( |
|
108 | + 'label' => 'Created', |
|
109 | + 'alter' => array( |
|
110 | 110 | 'alter_text' => 0, |
111 | 111 | 'text' => '', |
112 | 112 | 'make_link' => 0, |
@@ -125,22 +125,22 @@ discard block |
||
125 | 125 | 'ellipsis' => 1, |
126 | 126 | 'html' => 0, |
127 | 127 | 'strip_tags' => 0, |
128 | - ), |
|
129 | - 'empty' => '', |
|
130 | - 'hide_empty' => 0, |
|
131 | - 'empty_zero' => 0, |
|
132 | - 'hide_alter_empty' => 1, |
|
133 | - 'date_format' => 'time ago', |
|
134 | - 'custom_date_format' => '', |
|
135 | - 'exclude' => 0, |
|
136 | - 'id' => 'created', |
|
137 | - 'table' => 'node', |
|
138 | - 'field' => 'created', |
|
139 | - 'relationship' => 'nid', |
|
128 | + ), |
|
129 | + 'empty' => '', |
|
130 | + 'hide_empty' => 0, |
|
131 | + 'empty_zero' => 0, |
|
132 | + 'hide_alter_empty' => 1, |
|
133 | + 'date_format' => 'time ago', |
|
134 | + 'custom_date_format' => '', |
|
135 | + 'exclude' => 0, |
|
136 | + 'id' => 'created', |
|
137 | + 'table' => 'node', |
|
138 | + 'field' => 'created', |
|
139 | + 'relationship' => 'nid', |
|
140 | 140 | ), |
141 | 141 | 'last_comment_timestamp' => array( |
142 | - 'label' => 'Last reply', |
|
143 | - 'alter' => array( |
|
142 | + 'label' => 'Last reply', |
|
143 | + 'alter' => array( |
|
144 | 144 | 'alter_text' => 0, |
145 | 145 | 'text' => '', |
146 | 146 | 'make_link' => 0, |
@@ -159,22 +159,22 @@ discard block |
||
159 | 159 | 'ellipsis' => 1, |
160 | 160 | 'html' => 0, |
161 | 161 | 'strip_tags' => 0, |
162 | - ), |
|
163 | - 'empty' => '', |
|
164 | - 'hide_empty' => 0, |
|
165 | - 'empty_zero' => 0, |
|
166 | - 'hide_alter_empty' => 1, |
|
167 | - 'date_format' => 'time ago', |
|
168 | - 'custom_date_format' => '', |
|
169 | - 'exclude' => 0, |
|
170 | - 'id' => 'last_comment_timestamp', |
|
171 | - 'table' => 'node_comment_statistics', |
|
172 | - 'field' => 'last_comment_timestamp', |
|
173 | - 'relationship' => 'nid', |
|
162 | + ), |
|
163 | + 'empty' => '', |
|
164 | + 'hide_empty' => 0, |
|
165 | + 'empty_zero' => 0, |
|
166 | + 'hide_alter_empty' => 1, |
|
167 | + 'date_format' => 'time ago', |
|
168 | + 'custom_date_format' => '', |
|
169 | + 'exclude' => 0, |
|
170 | + 'id' => 'last_comment_timestamp', |
|
171 | + 'table' => 'node_comment_statistics', |
|
172 | + 'field' => 'last_comment_timestamp', |
|
173 | + 'relationship' => 'nid', |
|
174 | 174 | ), |
175 | 175 | 'new_comments' => array( |
176 | - 'label' => 'New comments', |
|
177 | - 'alter' => array( |
|
176 | + 'label' => 'New comments', |
|
177 | + 'alter' => array( |
|
178 | 178 | 'alter_text' => 0, |
179 | 179 | 'text' => '', |
180 | 180 | 'make_link' => 0, |
@@ -193,30 +193,30 @@ discard block |
||
193 | 193 | 'ellipsis' => 1, |
194 | 194 | 'html' => 0, |
195 | 195 | 'strip_tags' => 0, |
196 | - ), |
|
197 | - 'empty' => '', |
|
198 | - 'hide_empty' => 0, |
|
199 | - 'empty_zero' => 0, |
|
200 | - 'hide_alter_empty' => 1, |
|
201 | - 'set_precision' => FALSE, |
|
202 | - 'precision' => 0, |
|
203 | - 'decimal' => '.', |
|
204 | - 'separator' => ',', |
|
205 | - 'format_plural' => 0, |
|
206 | - 'format_plural_singular' => '1', |
|
207 | - 'format_plural_plural' => '@count', |
|
208 | - 'prefix' => '', |
|
209 | - 'suffix' => '', |
|
210 | - 'link_to_comment' => 1, |
|
211 | - 'exclude' => 0, |
|
212 | - 'id' => 'new_comments', |
|
213 | - 'table' => 'node', |
|
214 | - 'field' => 'new_comments', |
|
215 | - 'relationship' => 'nid', |
|
196 | + ), |
|
197 | + 'empty' => '', |
|
198 | + 'hide_empty' => 0, |
|
199 | + 'empty_zero' => 0, |
|
200 | + 'hide_alter_empty' => 1, |
|
201 | + 'set_precision' => FALSE, |
|
202 | + 'precision' => 0, |
|
203 | + 'decimal' => '.', |
|
204 | + 'separator' => ',', |
|
205 | + 'format_plural' => 0, |
|
206 | + 'format_plural_singular' => '1', |
|
207 | + 'format_plural_plural' => '@count', |
|
208 | + 'prefix' => '', |
|
209 | + 'suffix' => '', |
|
210 | + 'link_to_comment' => 1, |
|
211 | + 'exclude' => 0, |
|
212 | + 'id' => 'new_comments', |
|
213 | + 'table' => 'node', |
|
214 | + 'field' => 'new_comments', |
|
215 | + 'relationship' => 'nid', |
|
216 | 216 | ), |
217 | 217 | 'status' => array( |
218 | - 'label' => 'Published', |
|
219 | - 'alter' => array( |
|
218 | + 'label' => 'Published', |
|
219 | + 'alter' => array( |
|
220 | 220 | 'alter_text' => 0, |
221 | 221 | 'text' => '', |
222 | 222 | 'make_link' => 0, |
@@ -235,22 +235,22 @@ discard block |
||
235 | 235 | 'ellipsis' => 1, |
236 | 236 | 'html' => 0, |
237 | 237 | 'strip_tags' => 0, |
238 | - ), |
|
239 | - 'empty' => '', |
|
240 | - 'hide_empty' => 0, |
|
241 | - 'empty_zero' => 0, |
|
242 | - 'hide_alter_empty' => 1, |
|
243 | - 'type' => 'yes-no', |
|
244 | - 'not' => 0, |
|
245 | - 'exclude' => 0, |
|
246 | - 'id' => 'status', |
|
247 | - 'table' => 'node', |
|
248 | - 'field' => 'status', |
|
249 | - 'relationship' => 'nid', |
|
238 | + ), |
|
239 | + 'empty' => '', |
|
240 | + 'hide_empty' => 0, |
|
241 | + 'empty_zero' => 0, |
|
242 | + 'hide_alter_empty' => 1, |
|
243 | + 'type' => 'yes-no', |
|
244 | + 'not' => 0, |
|
245 | + 'exclude' => 0, |
|
246 | + 'id' => 'status', |
|
247 | + 'table' => 'node', |
|
248 | + 'field' => 'status', |
|
249 | + 'relationship' => 'nid', |
|
250 | 250 | ), |
251 | 251 | 'sticky' => array( |
252 | - 'label' => 'Sticky', |
|
253 | - 'alter' => array( |
|
252 | + 'label' => 'Sticky', |
|
253 | + 'alter' => array( |
|
254 | 254 | 'alter_text' => 0, |
255 | 255 | 'text' => '', |
256 | 256 | 'make_link' => 0, |
@@ -269,22 +269,22 @@ discard block |
||
269 | 269 | 'ellipsis' => 1, |
270 | 270 | 'html' => 0, |
271 | 271 | 'strip_tags' => 0, |
272 | - ), |
|
273 | - 'empty' => '', |
|
274 | - 'hide_empty' => 0, |
|
275 | - 'empty_zero' => 0, |
|
276 | - 'hide_alter_empty' => 1, |
|
277 | - 'type' => 'true-false', |
|
278 | - 'not' => 0, |
|
279 | - 'exclude' => 0, |
|
280 | - 'id' => 'sticky', |
|
281 | - 'table' => 'node', |
|
282 | - 'field' => 'sticky', |
|
283 | - 'relationship' => 'nid', |
|
272 | + ), |
|
273 | + 'empty' => '', |
|
274 | + 'hide_empty' => 0, |
|
275 | + 'empty_zero' => 0, |
|
276 | + 'hide_alter_empty' => 1, |
|
277 | + 'type' => 'true-false', |
|
278 | + 'not' => 0, |
|
279 | + 'exclude' => 0, |
|
280 | + 'id' => 'sticky', |
|
281 | + 'table' => 'node', |
|
282 | + 'field' => 'sticky', |
|
283 | + 'relationship' => 'nid', |
|
284 | 284 | ), |
285 | 285 | 'nid' => array( |
286 | - 'label' => 'Nid', |
|
287 | - 'alter' => array( |
|
286 | + 'label' => 'Nid', |
|
287 | + 'alter' => array( |
|
288 | 288 | 'alter_text' => 0, |
289 | 289 | 'text' => '', |
290 | 290 | 'make_link' => 0, |
@@ -303,21 +303,21 @@ discard block |
||
303 | 303 | 'ellipsis' => 1, |
304 | 304 | 'html' => 0, |
305 | 305 | 'strip_tags' => 0, |
306 | - ), |
|
307 | - 'empty' => '', |
|
308 | - 'hide_empty' => 0, |
|
309 | - 'empty_zero' => 0, |
|
310 | - 'hide_alter_empty' => 1, |
|
311 | - 'link_to_node' => 0, |
|
312 | - 'exclude' => 0, |
|
313 | - 'id' => 'nid', |
|
314 | - 'table' => 'node', |
|
315 | - 'field' => 'nid', |
|
316 | - 'relationship' => 'nid', |
|
306 | + ), |
|
307 | + 'empty' => '', |
|
308 | + 'hide_empty' => 0, |
|
309 | + 'empty_zero' => 0, |
|
310 | + 'hide_alter_empty' => 1, |
|
311 | + 'link_to_node' => 0, |
|
312 | + 'exclude' => 0, |
|
313 | + 'id' => 'nid', |
|
314 | + 'table' => 'node', |
|
315 | + 'field' => 'nid', |
|
316 | + 'relationship' => 'nid', |
|
317 | 317 | ), |
318 | 318 | 'comment' => array( |
319 | - 'label' => 'Comment status', |
|
320 | - 'alter' => array( |
|
319 | + 'label' => 'Comment status', |
|
320 | + 'alter' => array( |
|
321 | 321 | 'alter_text' => 0, |
322 | 322 | 'text' => '', |
323 | 323 | 'make_link' => 0, |
@@ -336,20 +336,20 @@ discard block |
||
336 | 336 | 'ellipsis' => 1, |
337 | 337 | 'html' => 0, |
338 | 338 | 'strip_tags' => 0, |
339 | - ), |
|
340 | - 'empty' => '', |
|
341 | - 'hide_empty' => 0, |
|
342 | - 'empty_zero' => 0, |
|
343 | - 'hide_alter_empty' => 1, |
|
344 | - 'exclude' => 0, |
|
345 | - 'id' => 'comment', |
|
346 | - 'table' => 'node', |
|
347 | - 'field' => 'comment', |
|
348 | - 'relationship' => 'nid', |
|
339 | + ), |
|
340 | + 'empty' => '', |
|
341 | + 'hide_empty' => 0, |
|
342 | + 'empty_zero' => 0, |
|
343 | + 'hide_alter_empty' => 1, |
|
344 | + 'exclude' => 0, |
|
345 | + 'id' => 'comment', |
|
346 | + 'table' => 'node', |
|
347 | + 'field' => 'comment', |
|
348 | + 'relationship' => 'nid', |
|
349 | 349 | ), |
350 | 350 | 'timestamp' => array( |
351 | - 'label' => 'Has new content', |
|
352 | - 'alter' => array( |
|
351 | + 'label' => 'Has new content', |
|
352 | + 'alter' => array( |
|
353 | 353 | 'alter_text' => 0, |
354 | 354 | 'text' => '', |
355 | 355 | 'make_link' => 0, |
@@ -368,22 +368,22 @@ discard block |
||
368 | 368 | 'ellipsis' => 1, |
369 | 369 | 'html' => 0, |
370 | 370 | 'strip_tags' => 1, |
371 | - ), |
|
372 | - 'empty' => '', |
|
373 | - 'hide_empty' => 0, |
|
374 | - 'empty_zero' => 0, |
|
375 | - 'hide_alter_empty' => 1, |
|
376 | - 'link_to_node' => 0, |
|
377 | - 'comments' => 0, |
|
378 | - 'exclude' => 0, |
|
379 | - 'id' => 'timestamp', |
|
380 | - 'table' => 'history_user', |
|
381 | - 'field' => 'timestamp', |
|
382 | - 'relationship' => 'nid', |
|
371 | + ), |
|
372 | + 'empty' => '', |
|
373 | + 'hide_empty' => 0, |
|
374 | + 'empty_zero' => 0, |
|
375 | + 'hide_alter_empty' => 1, |
|
376 | + 'link_to_node' => 0, |
|
377 | + 'comments' => 0, |
|
378 | + 'exclude' => 0, |
|
379 | + 'id' => 'timestamp', |
|
380 | + 'table' => 'history_user', |
|
381 | + 'field' => 'timestamp', |
|
382 | + 'relationship' => 'nid', |
|
383 | 383 | ), |
384 | 384 | 'uid' => array( |
385 | - 'label' => 'Uid', |
|
386 | - 'alter' => array( |
|
385 | + 'label' => 'Uid', |
|
386 | + 'alter' => array( |
|
387 | 387 | 'alter_text' => 0, |
388 | 388 | 'text' => '', |
389 | 389 | 'make_link' => 0, |
@@ -402,56 +402,56 @@ discard block |
||
402 | 402 | 'ellipsis' => 1, |
403 | 403 | 'html' => 0, |
404 | 404 | 'strip_tags' => 0, |
405 | - ), |
|
406 | - 'empty' => '', |
|
407 | - 'hide_empty' => 0, |
|
408 | - 'empty_zero' => 0, |
|
409 | - 'hide_alter_empty' => 1, |
|
410 | - 'link_to_user' => 0, |
|
411 | - 'exclude' => 0, |
|
412 | - 'id' => 'uid', |
|
413 | - 'table' => 'users', |
|
414 | - 'field' => 'uid', |
|
415 | - 'relationship' => 'nid', |
|
405 | + ), |
|
406 | + 'empty' => '', |
|
407 | + 'hide_empty' => 0, |
|
408 | + 'empty_zero' => 0, |
|
409 | + 'hide_alter_empty' => 1, |
|
410 | + 'link_to_user' => 0, |
|
411 | + 'exclude' => 0, |
|
412 | + 'id' => 'uid', |
|
413 | + 'table' => 'users', |
|
414 | + 'field' => 'uid', |
|
415 | + 'relationship' => 'nid', |
|
416 | 416 | ), |
417 | - )); |
|
418 | - $handler->override_option('sorts', array( |
|
417 | + )); |
|
418 | + $handler->override_option('sorts', array( |
|
419 | 419 | 'sticky' => array( |
420 | - 'order' => 'DESC', |
|
421 | - 'id' => 'sticky', |
|
422 | - 'table' => 'node', |
|
423 | - 'field' => 'sticky', |
|
424 | - 'relationship' => 'nid', |
|
420 | + 'order' => 'DESC', |
|
421 | + 'id' => 'sticky', |
|
422 | + 'table' => 'node', |
|
423 | + 'field' => 'sticky', |
|
424 | + 'relationship' => 'nid', |
|
425 | 425 | ), |
426 | 426 | 'last_comment_timestamp' => array( |
427 | - 'order' => 'DESC', |
|
428 | - 'granularity' => 'second', |
|
429 | - 'id' => 'last_comment_timestamp', |
|
430 | - 'table' => 'node_comment_statistics', |
|
431 | - 'field' => 'last_comment_timestamp', |
|
432 | - 'relationship' => 'nid', |
|
427 | + 'order' => 'DESC', |
|
428 | + 'granularity' => 'second', |
|
429 | + 'id' => 'last_comment_timestamp', |
|
430 | + 'table' => 'node_comment_statistics', |
|
431 | + 'field' => 'last_comment_timestamp', |
|
432 | + 'relationship' => 'nid', |
|
433 | 433 | ), |
434 | - )); |
|
435 | - $handler->override_option('arguments', array( |
|
434 | + )); |
|
435 | + $handler->override_option('arguments', array( |
|
436 | 436 | 'tfid' => array( |
437 | - 'default_action' => 'not found', |
|
438 | - 'style_plugin' => 'default_summary', |
|
439 | - 'style_options' => array(), |
|
440 | - 'wildcard' => 'all', |
|
441 | - 'wildcard_substitution' => 'All', |
|
442 | - 'title' => '', |
|
443 | - 'breadcrumb' => '', |
|
444 | - 'default_argument_type' => 'fixed', |
|
445 | - 'default_argument' => '', |
|
446 | - 'validate_type' => 'numeric', |
|
447 | - 'validate_fail' => 'not found', |
|
448 | - 'break_phrase' => 0, |
|
449 | - 'not' => 0, |
|
450 | - 'id' => 'tfid', |
|
451 | - 'table' => 'boincteam_forum_node', |
|
452 | - 'field' => 'tfid', |
|
453 | - 'validate_user_argument_type' => 'uid', |
|
454 | - 'validate_user_roles' => array( |
|
437 | + 'default_action' => 'not found', |
|
438 | + 'style_plugin' => 'default_summary', |
|
439 | + 'style_options' => array(), |
|
440 | + 'wildcard' => 'all', |
|
441 | + 'wildcard_substitution' => 'All', |
|
442 | + 'title' => '', |
|
443 | + 'breadcrumb' => '', |
|
444 | + 'default_argument_type' => 'fixed', |
|
445 | + 'default_argument' => '', |
|
446 | + 'validate_type' => 'numeric', |
|
447 | + 'validate_fail' => 'not found', |
|
448 | + 'break_phrase' => 0, |
|
449 | + 'not' => 0, |
|
450 | + 'id' => 'tfid', |
|
451 | + 'table' => 'boincteam_forum_node', |
|
452 | + 'field' => 'tfid', |
|
453 | + 'validate_user_argument_type' => 'uid', |
|
454 | + 'validate_user_roles' => array( |
|
455 | 455 | 2 => 0, |
456 | 456 | 3519698132 => 0, |
457 | 457 | 1110965548 => 0, |
@@ -460,10 +460,10 @@ discard block |
||
460 | 460 | 268174006 => 0, |
461 | 461 | 1271379760 => 0, |
462 | 462 | 933038561 => 0, |
463 | - ), |
|
464 | - 'me_redirect' => 0, |
|
465 | - 'me_validate_user_argument_type' => 'uid', |
|
466 | - 'me_validate_user_roles' => array( |
|
463 | + ), |
|
464 | + 'me_redirect' => 0, |
|
465 | + 'me_validate_user_argument_type' => 'uid', |
|
466 | + 'me_validate_user_roles' => array( |
|
467 | 467 | 2 => 0, |
468 | 468 | 3519698132 => 0, |
469 | 469 | 1110965548 => 0, |
@@ -472,20 +472,20 @@ discard block |
||
472 | 472 | 268174006 => 0, |
473 | 473 | 1271379760 => 0, |
474 | 474 | 933038561 => 0, |
475 | - ), |
|
476 | - 'relationship' => 'none', |
|
477 | - 'default_options_div_prefix' => '', |
|
478 | - 'default_taxonomy_tid_term_page' => 0, |
|
479 | - 'default_taxonomy_tid_node' => 0, |
|
480 | - 'default_taxonomy_tid_limit' => 0, |
|
481 | - 'default_taxonomy_tid_vids' => array( |
|
475 | + ), |
|
476 | + 'relationship' => 'none', |
|
477 | + 'default_options_div_prefix' => '', |
|
478 | + 'default_taxonomy_tid_term_page' => 0, |
|
479 | + 'default_taxonomy_tid_node' => 0, |
|
480 | + 'default_taxonomy_tid_limit' => 0, |
|
481 | + 'default_taxonomy_tid_vids' => array( |
|
482 | 482 | 1 => 0, |
483 | 483 | 2 => 0, |
484 | - ), |
|
485 | - 'default_argument_user' => 0, |
|
486 | - 'default_argument_fixed' => '', |
|
487 | - 'default_argument_php' => '', |
|
488 | - 'validate_argument_node_type' => array( |
|
484 | + ), |
|
485 | + 'default_argument_user' => 0, |
|
486 | + 'default_argument_fixed' => '', |
|
487 | + 'default_argument_php' => '', |
|
488 | + 'validate_argument_node_type' => array( |
|
489 | 489 | 'page' => 0, |
490 | 490 | 'news' => 0, |
491 | 491 | 'profile' => 0, |
@@ -494,37 +494,37 @@ discard block |
||
494 | 494 | 'story' => 0, |
495 | 495 | 'team' => 0, |
496 | 496 | 'team_forum' => 0, |
497 | - ), |
|
498 | - 'validate_argument_node_access' => 0, |
|
499 | - 'validate_argument_nid_type' => 'nid', |
|
500 | - 'validate_argument_vocabulary' => array( |
|
497 | + ), |
|
498 | + 'validate_argument_node_access' => 0, |
|
499 | + 'validate_argument_nid_type' => 'nid', |
|
500 | + 'validate_argument_vocabulary' => array( |
|
501 | 501 | 1 => 0, |
502 | 502 | 2 => 0, |
503 | - ), |
|
504 | - 'validate_argument_type' => 'tid', |
|
505 | - 'validate_argument_transform' => 0, |
|
506 | - 'validate_user_restrict_roles' => 0, |
|
507 | - 'validate_argument_node_flag_name' => '*relationship*', |
|
508 | - 'validate_argument_node_flag_test' => 'flaggable', |
|
509 | - 'validate_argument_node_flag_id_type' => 'id', |
|
510 | - 'validate_argument_user_flag_name' => '*relationship*', |
|
511 | - 'validate_argument_user_flag_test' => 'flaggable', |
|
512 | - 'validate_argument_user_flag_id_type' => 'id', |
|
513 | - 'validate_argument_php' => '', |
|
514 | - 'me_validate_user_restrict_roles' => 0, |
|
503 | + ), |
|
504 | + 'validate_argument_type' => 'tid', |
|
505 | + 'validate_argument_transform' => 0, |
|
506 | + 'validate_user_restrict_roles' => 0, |
|
507 | + 'validate_argument_node_flag_name' => '*relationship*', |
|
508 | + 'validate_argument_node_flag_test' => 'flaggable', |
|
509 | + 'validate_argument_node_flag_id_type' => 'id', |
|
510 | + 'validate_argument_user_flag_name' => '*relationship*', |
|
511 | + 'validate_argument_user_flag_test' => 'flaggable', |
|
512 | + 'validate_argument_user_flag_id_type' => 'id', |
|
513 | + 'validate_argument_php' => '', |
|
514 | + 'me_validate_user_restrict_roles' => 0, |
|
515 | 515 | ), |
516 | - )); |
|
517 | - $handler->override_option('access', array( |
|
516 | + )); |
|
517 | + $handler->override_option('access', array( |
|
518 | 518 | 'type' => 'none', |
519 | - )); |
|
520 | - $handler->override_option('cache', array( |
|
519 | + )); |
|
520 | + $handler->override_option('cache', array( |
|
521 | 521 | 'type' => 'none', |
522 | - )); |
|
523 | - $handler = $view->new_display('panel_pane', 'Topic list', 'panel_pane_1'); |
|
524 | - $handler->override_option('fields', array( |
|
522 | + )); |
|
523 | + $handler = $view->new_display('panel_pane', 'Topic list', 'panel_pane_1'); |
|
524 | + $handler->override_option('fields', array( |
|
525 | 525 | 'title' => array( |
526 | - 'label' => 'Topic', |
|
527 | - 'alter' => array( |
|
526 | + 'label' => 'Topic', |
|
527 | + 'alter' => array( |
|
528 | 528 | 'alter_text' => 0, |
529 | 529 | 'text' => '', |
530 | 530 | 'make_link' => 0, |
@@ -543,21 +543,21 @@ discard block |
||
543 | 543 | 'ellipsis' => 1, |
544 | 544 | 'html' => 0, |
545 | 545 | 'strip_tags' => 0, |
546 | - ), |
|
547 | - 'empty' => '', |
|
548 | - 'hide_empty' => 0, |
|
549 | - 'empty_zero' => 0, |
|
550 | - 'hide_alter_empty' => 1, |
|
551 | - 'link_to_node' => 1, |
|
552 | - 'exclude' => 0, |
|
553 | - 'id' => 'title', |
|
554 | - 'table' => 'node', |
|
555 | - 'field' => 'title', |
|
556 | - 'relationship' => 'nid', |
|
546 | + ), |
|
547 | + 'empty' => '', |
|
548 | + 'hide_empty' => 0, |
|
549 | + 'empty_zero' => 0, |
|
550 | + 'hide_alter_empty' => 1, |
|
551 | + 'link_to_node' => 1, |
|
552 | + 'exclude' => 0, |
|
553 | + 'id' => 'title', |
|
554 | + 'table' => 'node', |
|
555 | + 'field' => 'title', |
|
556 | + 'relationship' => 'nid', |
|
557 | 557 | ), |
558 | 558 | 'comment_count' => array( |
559 | - 'label' => 'Replies', |
|
560 | - 'alter' => array( |
|
559 | + 'label' => 'Replies', |
|
560 | + 'alter' => array( |
|
561 | 561 | 'alter_text' => 0, |
562 | 562 | 'text' => '', |
563 | 563 | 'make_link' => 0, |
@@ -576,32 +576,32 @@ discard block |
||
576 | 576 | 'ellipsis' => 1, |
577 | 577 | 'html' => 0, |
578 | 578 | 'strip_tags' => 0, |
579 | - ), |
|
580 | - 'empty' => '0', |
|
581 | - 'hide_empty' => 0, |
|
582 | - 'empty_zero' => 0, |
|
583 | - 'hide_alter_empty' => 0, |
|
584 | - 'set_precision' => FALSE, |
|
585 | - 'precision' => 0, |
|
586 | - 'decimal' => '.', |
|
587 | - 'separator' => ',', |
|
588 | - 'format_plural' => 0, |
|
589 | - 'format_plural_singular' => '1', |
|
590 | - 'format_plural_plural' => '@count', |
|
591 | - 'prefix' => '', |
|
592 | - 'suffix' => '', |
|
593 | - 'exclude' => 0, |
|
594 | - 'id' => 'comment_count', |
|
595 | - 'table' => 'node_comment_statistics', |
|
596 | - 'field' => 'comment_count', |
|
597 | - 'relationship' => 'nid', |
|
598 | - 'override' => array( |
|
579 | + ), |
|
580 | + 'empty' => '0', |
|
581 | + 'hide_empty' => 0, |
|
582 | + 'empty_zero' => 0, |
|
583 | + 'hide_alter_empty' => 0, |
|
584 | + 'set_precision' => FALSE, |
|
585 | + 'precision' => 0, |
|
586 | + 'decimal' => '.', |
|
587 | + 'separator' => ',', |
|
588 | + 'format_plural' => 0, |
|
589 | + 'format_plural_singular' => '1', |
|
590 | + 'format_plural_plural' => '@count', |
|
591 | + 'prefix' => '', |
|
592 | + 'suffix' => '', |
|
593 | + 'exclude' => 0, |
|
594 | + 'id' => 'comment_count', |
|
595 | + 'table' => 'node_comment_statistics', |
|
596 | + 'field' => 'comment_count', |
|
597 | + 'relationship' => 'nid', |
|
598 | + 'override' => array( |
|
599 | 599 | 'button' => 'Override', |
600 | - ), |
|
600 | + ), |
|
601 | 601 | ), |
602 | 602 | 'created' => array( |
603 | - 'label' => 'Created', |
|
604 | - 'alter' => array( |
|
603 | + 'label' => 'Created', |
|
604 | + 'alter' => array( |
|
605 | 605 | 'alter_text' => 0, |
606 | 606 | 'text' => '', |
607 | 607 | 'make_link' => 0, |
@@ -620,22 +620,22 @@ discard block |
||
620 | 620 | 'ellipsis' => 1, |
621 | 621 | 'html' => 0, |
622 | 622 | 'strip_tags' => 0, |
623 | - ), |
|
624 | - 'empty' => '', |
|
625 | - 'hide_empty' => 0, |
|
626 | - 'empty_zero' => 0, |
|
627 | - 'hide_alter_empty' => 1, |
|
628 | - 'date_format' => 'time ago', |
|
629 | - 'custom_date_format' => '', |
|
630 | - 'exclude' => 0, |
|
631 | - 'id' => 'created', |
|
632 | - 'table' => 'node', |
|
633 | - 'field' => 'created', |
|
634 | - 'relationship' => 'nid', |
|
623 | + ), |
|
624 | + 'empty' => '', |
|
625 | + 'hide_empty' => 0, |
|
626 | + 'empty_zero' => 0, |
|
627 | + 'hide_alter_empty' => 1, |
|
628 | + 'date_format' => 'time ago', |
|
629 | + 'custom_date_format' => '', |
|
630 | + 'exclude' => 0, |
|
631 | + 'id' => 'created', |
|
632 | + 'table' => 'node', |
|
633 | + 'field' => 'created', |
|
634 | + 'relationship' => 'nid', |
|
635 | 635 | ), |
636 | 636 | 'last_comment_timestamp' => array( |
637 | - 'label' => 'Last reply', |
|
638 | - 'alter' => array( |
|
637 | + 'label' => 'Last reply', |
|
638 | + 'alter' => array( |
|
639 | 639 | 'alter_text' => 0, |
640 | 640 | 'text' => '', |
641 | 641 | 'make_link' => 0, |
@@ -654,22 +654,22 @@ discard block |
||
654 | 654 | 'ellipsis' => 1, |
655 | 655 | 'html' => 0, |
656 | 656 | 'strip_tags' => 0, |
657 | - ), |
|
658 | - 'empty' => '', |
|
659 | - 'hide_empty' => 0, |
|
660 | - 'empty_zero' => 0, |
|
661 | - 'hide_alter_empty' => 1, |
|
662 | - 'date_format' => 'time ago', |
|
663 | - 'custom_date_format' => '', |
|
664 | - 'exclude' => 0, |
|
665 | - 'id' => 'last_comment_timestamp', |
|
666 | - 'table' => 'node_comment_statistics', |
|
667 | - 'field' => 'last_comment_timestamp', |
|
668 | - 'relationship' => 'nid', |
|
657 | + ), |
|
658 | + 'empty' => '', |
|
659 | + 'hide_empty' => 0, |
|
660 | + 'empty_zero' => 0, |
|
661 | + 'hide_alter_empty' => 1, |
|
662 | + 'date_format' => 'time ago', |
|
663 | + 'custom_date_format' => '', |
|
664 | + 'exclude' => 0, |
|
665 | + 'id' => 'last_comment_timestamp', |
|
666 | + 'table' => 'node_comment_statistics', |
|
667 | + 'field' => 'last_comment_timestamp', |
|
668 | + 'relationship' => 'nid', |
|
669 | 669 | ), |
670 | 670 | 'new_comments' => array( |
671 | - 'label' => 'New comments', |
|
672 | - 'alter' => array( |
|
671 | + 'label' => 'New comments', |
|
672 | + 'alter' => array( |
|
673 | 673 | 'alter_text' => 0, |
674 | 674 | 'text' => '', |
675 | 675 | 'make_link' => 0, |
@@ -688,33 +688,33 @@ discard block |
||
688 | 688 | 'ellipsis' => 1, |
689 | 689 | 'html' => 0, |
690 | 690 | 'strip_tags' => 0, |
691 | - ), |
|
692 | - 'empty' => '', |
|
693 | - 'hide_empty' => 0, |
|
694 | - 'empty_zero' => 0, |
|
695 | - 'hide_alter_empty' => 1, |
|
696 | - 'set_precision' => FALSE, |
|
697 | - 'precision' => 0, |
|
698 | - 'decimal' => '.', |
|
699 | - 'separator' => ',', |
|
700 | - 'format_plural' => 0, |
|
701 | - 'format_plural_singular' => '1', |
|
702 | - 'format_plural_plural' => '@count', |
|
703 | - 'prefix' => '', |
|
704 | - 'suffix' => '', |
|
705 | - 'link_to_comment' => 1, |
|
706 | - 'exclude' => 0, |
|
707 | - 'id' => 'new_comments', |
|
708 | - 'table' => 'node', |
|
709 | - 'field' => 'new_comments', |
|
710 | - 'relationship' => 'nid', |
|
711 | - 'override' => array( |
|
691 | + ), |
|
692 | + 'empty' => '', |
|
693 | + 'hide_empty' => 0, |
|
694 | + 'empty_zero' => 0, |
|
695 | + 'hide_alter_empty' => 1, |
|
696 | + 'set_precision' => FALSE, |
|
697 | + 'precision' => 0, |
|
698 | + 'decimal' => '.', |
|
699 | + 'separator' => ',', |
|
700 | + 'format_plural' => 0, |
|
701 | + 'format_plural_singular' => '1', |
|
702 | + 'format_plural_plural' => '@count', |
|
703 | + 'prefix' => '', |
|
704 | + 'suffix' => '', |
|
705 | + 'link_to_comment' => 1, |
|
706 | + 'exclude' => 0, |
|
707 | + 'id' => 'new_comments', |
|
708 | + 'table' => 'node', |
|
709 | + 'field' => 'new_comments', |
|
710 | + 'relationship' => 'nid', |
|
711 | + 'override' => array( |
|
712 | 712 | 'button' => 'Use default', |
713 | - ), |
|
713 | + ), |
|
714 | 714 | ), |
715 | 715 | 'status' => array( |
716 | - 'label' => 'Published', |
|
717 | - 'alter' => array( |
|
716 | + 'label' => 'Published', |
|
717 | + 'alter' => array( |
|
718 | 718 | 'alter_text' => 0, |
719 | 719 | 'text' => '', |
720 | 720 | 'make_link' => 0, |
@@ -733,22 +733,22 @@ discard block |
||
733 | 733 | 'ellipsis' => 1, |
734 | 734 | 'html' => 0, |
735 | 735 | 'strip_tags' => 0, |
736 | - ), |
|
737 | - 'empty' => '', |
|
738 | - 'hide_empty' => 0, |
|
739 | - 'empty_zero' => 0, |
|
740 | - 'hide_alter_empty' => 1, |
|
741 | - 'type' => 'yes-no', |
|
742 | - 'not' => 0, |
|
743 | - 'exclude' => 0, |
|
744 | - 'id' => 'status', |
|
745 | - 'table' => 'node', |
|
746 | - 'field' => 'status', |
|
747 | - 'relationship' => 'nid', |
|
736 | + ), |
|
737 | + 'empty' => '', |
|
738 | + 'hide_empty' => 0, |
|
739 | + 'empty_zero' => 0, |
|
740 | + 'hide_alter_empty' => 1, |
|
741 | + 'type' => 'yes-no', |
|
742 | + 'not' => 0, |
|
743 | + 'exclude' => 0, |
|
744 | + 'id' => 'status', |
|
745 | + 'table' => 'node', |
|
746 | + 'field' => 'status', |
|
747 | + 'relationship' => 'nid', |
|
748 | 748 | ), |
749 | 749 | 'sticky' => array( |
750 | - 'label' => 'Sticky', |
|
751 | - 'alter' => array( |
|
750 | + 'label' => 'Sticky', |
|
751 | + 'alter' => array( |
|
752 | 752 | 'alter_text' => 0, |
753 | 753 | 'text' => '', |
754 | 754 | 'make_link' => 0, |
@@ -767,25 +767,25 @@ discard block |
||
767 | 767 | 'ellipsis' => 1, |
768 | 768 | 'html' => 0, |
769 | 769 | 'strip_tags' => 0, |
770 | - ), |
|
771 | - 'empty' => '', |
|
772 | - 'hide_empty' => 0, |
|
773 | - 'empty_zero' => 0, |
|
774 | - 'hide_alter_empty' => 1, |
|
775 | - 'type' => 'true-false', |
|
776 | - 'not' => 0, |
|
777 | - 'exclude' => 0, |
|
778 | - 'id' => 'sticky', |
|
779 | - 'table' => 'node', |
|
780 | - 'field' => 'sticky', |
|
781 | - 'relationship' => 'nid', |
|
782 | - 'override' => array( |
|
770 | + ), |
|
771 | + 'empty' => '', |
|
772 | + 'hide_empty' => 0, |
|
773 | + 'empty_zero' => 0, |
|
774 | + 'hide_alter_empty' => 1, |
|
775 | + 'type' => 'true-false', |
|
776 | + 'not' => 0, |
|
777 | + 'exclude' => 0, |
|
778 | + 'id' => 'sticky', |
|
779 | + 'table' => 'node', |
|
780 | + 'field' => 'sticky', |
|
781 | + 'relationship' => 'nid', |
|
782 | + 'override' => array( |
|
783 | 783 | 'button' => 'Use default', |
784 | - ), |
|
784 | + ), |
|
785 | 785 | ), |
786 | 786 | 'nid' => array( |
787 | - 'label' => 'Nid', |
|
788 | - 'alter' => array( |
|
787 | + 'label' => 'Nid', |
|
788 | + 'alter' => array( |
|
789 | 789 | 'alter_text' => 0, |
790 | 790 | 'text' => '', |
791 | 791 | 'make_link' => 0, |
@@ -804,21 +804,21 @@ discard block |
||
804 | 804 | 'ellipsis' => 1, |
805 | 805 | 'html' => 0, |
806 | 806 | 'strip_tags' => 0, |
807 | - ), |
|
808 | - 'empty' => '', |
|
809 | - 'hide_empty' => 0, |
|
810 | - 'empty_zero' => 0, |
|
811 | - 'hide_alter_empty' => 1, |
|
812 | - 'link_to_node' => 0, |
|
813 | - 'exclude' => 0, |
|
814 | - 'id' => 'nid', |
|
815 | - 'table' => 'node', |
|
816 | - 'field' => 'nid', |
|
817 | - 'relationship' => 'nid', |
|
807 | + ), |
|
808 | + 'empty' => '', |
|
809 | + 'hide_empty' => 0, |
|
810 | + 'empty_zero' => 0, |
|
811 | + 'hide_alter_empty' => 1, |
|
812 | + 'link_to_node' => 0, |
|
813 | + 'exclude' => 0, |
|
814 | + 'id' => 'nid', |
|
815 | + 'table' => 'node', |
|
816 | + 'field' => 'nid', |
|
817 | + 'relationship' => 'nid', |
|
818 | 818 | ), |
819 | 819 | 'comment' => array( |
820 | - 'label' => 'Comment status', |
|
821 | - 'alter' => array( |
|
820 | + 'label' => 'Comment status', |
|
821 | + 'alter' => array( |
|
822 | 822 | 'alter_text' => 0, |
823 | 823 | 'text' => '', |
824 | 824 | 'make_link' => 0, |
@@ -837,20 +837,20 @@ discard block |
||
837 | 837 | 'ellipsis' => 1, |
838 | 838 | 'html' => 0, |
839 | 839 | 'strip_tags' => 0, |
840 | - ), |
|
841 | - 'empty' => '', |
|
842 | - 'hide_empty' => 0, |
|
843 | - 'empty_zero' => 0, |
|
844 | - 'hide_alter_empty' => 1, |
|
845 | - 'exclude' => 0, |
|
846 | - 'id' => 'comment', |
|
847 | - 'table' => 'node', |
|
848 | - 'field' => 'comment', |
|
849 | - 'relationship' => 'nid', |
|
840 | + ), |
|
841 | + 'empty' => '', |
|
842 | + 'hide_empty' => 0, |
|
843 | + 'empty_zero' => 0, |
|
844 | + 'hide_alter_empty' => 1, |
|
845 | + 'exclude' => 0, |
|
846 | + 'id' => 'comment', |
|
847 | + 'table' => 'node', |
|
848 | + 'field' => 'comment', |
|
849 | + 'relationship' => 'nid', |
|
850 | 850 | ), |
851 | 851 | 'timestamp' => array( |
852 | - 'label' => 'Has new content', |
|
853 | - 'alter' => array( |
|
852 | + 'label' => 'Has new content', |
|
853 | + 'alter' => array( |
|
854 | 854 | 'alter_text' => 0, |
855 | 855 | 'text' => '', |
856 | 856 | 'make_link' => 0, |
@@ -869,25 +869,25 @@ discard block |
||
869 | 869 | 'ellipsis' => 1, |
870 | 870 | 'html' => 0, |
871 | 871 | 'strip_tags' => 1, |
872 | - ), |
|
873 | - 'empty' => '', |
|
874 | - 'hide_empty' => 0, |
|
875 | - 'empty_zero' => 0, |
|
876 | - 'hide_alter_empty' => 1, |
|
877 | - 'link_to_node' => 0, |
|
878 | - 'comments' => 0, |
|
879 | - 'exclude' => 0, |
|
880 | - 'id' => 'timestamp', |
|
881 | - 'table' => 'history_user', |
|
882 | - 'field' => 'timestamp', |
|
883 | - 'relationship' => 'nid', |
|
884 | - 'override' => array( |
|
872 | + ), |
|
873 | + 'empty' => '', |
|
874 | + 'hide_empty' => 0, |
|
875 | + 'empty_zero' => 0, |
|
876 | + 'hide_alter_empty' => 1, |
|
877 | + 'link_to_node' => 0, |
|
878 | + 'comments' => 0, |
|
879 | + 'exclude' => 0, |
|
880 | + 'id' => 'timestamp', |
|
881 | + 'table' => 'history_user', |
|
882 | + 'field' => 'timestamp', |
|
883 | + 'relationship' => 'nid', |
|
884 | + 'override' => array( |
|
885 | 885 | 'button' => 'Use default', |
886 | - ), |
|
886 | + ), |
|
887 | 887 | ), |
888 | 888 | 'uid' => array( |
889 | - 'label' => 'Uid', |
|
890 | - 'alter' => array( |
|
889 | + 'label' => 'Uid', |
|
890 | + 'alter' => array( |
|
891 | 891 | 'alter_text' => 0, |
892 | 892 | 'text' => '', |
893 | 893 | 'make_link' => 0, |
@@ -906,121 +906,121 @@ discard block |
||
906 | 906 | 'ellipsis' => 1, |
907 | 907 | 'html' => 0, |
908 | 908 | 'strip_tags' => 0, |
909 | - ), |
|
910 | - 'empty' => '', |
|
911 | - 'hide_empty' => 0, |
|
912 | - 'empty_zero' => 0, |
|
913 | - 'hide_alter_empty' => 1, |
|
914 | - 'link_to_user' => 0, |
|
915 | - 'exclude' => 0, |
|
916 | - 'id' => 'uid', |
|
917 | - 'table' => 'users', |
|
918 | - 'field' => 'uid', |
|
919 | - 'relationship' => 'nid', |
|
920 | - 'override' => array( |
|
909 | + ), |
|
910 | + 'empty' => '', |
|
911 | + 'hide_empty' => 0, |
|
912 | + 'empty_zero' => 0, |
|
913 | + 'hide_alter_empty' => 1, |
|
914 | + 'link_to_user' => 0, |
|
915 | + 'exclude' => 0, |
|
916 | + 'id' => 'uid', |
|
917 | + 'table' => 'users', |
|
918 | + 'field' => 'uid', |
|
919 | + 'relationship' => 'nid', |
|
920 | + 'override' => array( |
|
921 | 921 | 'button' => 'Use default', |
922 | - ), |
|
922 | + ), |
|
923 | 923 | ), |
924 | - )); |
|
925 | - $handler->override_option('sorts', array( |
|
924 | + )); |
|
925 | + $handler->override_option('sorts', array( |
|
926 | 926 | 'sticky' => array( |
927 | - 'order' => 'DESC', |
|
928 | - 'id' => 'sticky', |
|
929 | - 'table' => 'node', |
|
930 | - 'field' => 'sticky', |
|
931 | - 'relationship' => 'nid', |
|
932 | - 'override' => array( |
|
927 | + 'order' => 'DESC', |
|
928 | + 'id' => 'sticky', |
|
929 | + 'table' => 'node', |
|
930 | + 'field' => 'sticky', |
|
931 | + 'relationship' => 'nid', |
|
932 | + 'override' => array( |
|
933 | 933 | 'button' => 'Use default', |
934 | - ), |
|
934 | + ), |
|
935 | 935 | ), |
936 | 936 | 'last_comment_timestamp' => array( |
937 | - 'order' => 'DESC', |
|
938 | - 'granularity' => 'second', |
|
939 | - 'id' => 'last_comment_timestamp', |
|
940 | - 'table' => 'node_comment_statistics', |
|
941 | - 'field' => 'last_comment_timestamp', |
|
942 | - 'relationship' => 'nid', |
|
943 | - 'override' => array( |
|
937 | + 'order' => 'DESC', |
|
938 | + 'granularity' => 'second', |
|
939 | + 'id' => 'last_comment_timestamp', |
|
940 | + 'table' => 'node_comment_statistics', |
|
941 | + 'field' => 'last_comment_timestamp', |
|
942 | + 'relationship' => 'nid', |
|
943 | + 'override' => array( |
|
944 | 944 | 'button' => 'Use default', |
945 | - ), |
|
945 | + ), |
|
946 | 946 | ), |
947 | - )); |
|
948 | - $handler->override_option('empty', 'No topics yet...'); |
|
949 | - $handler->override_option('empty_format', '5'); |
|
950 | - $handler->override_option('use_pager', '1'); |
|
951 | - $handler->override_option('style_plugin', 'table'); |
|
952 | - $handler->override_option('style_options', array( |
|
947 | + )); |
|
948 | + $handler->override_option('empty', 'No topics yet...'); |
|
949 | + $handler->override_option('empty_format', '5'); |
|
950 | + $handler->override_option('use_pager', '1'); |
|
951 | + $handler->override_option('style_plugin', 'table'); |
|
952 | + $handler->override_option('style_options', array( |
|
953 | 953 | 'grouping' => '', |
954 | 954 | 'override' => 1, |
955 | 955 | 'sticky' => 0, |
956 | 956 | 'order' => 'desc', |
957 | 957 | 'summary' => '', |
958 | 958 | 'columns' => array( |
959 | - 'title' => 'title', |
|
960 | - 'comment_count' => 'comment_count', |
|
961 | - 'created' => 'created', |
|
962 | - 'last_comment_timestamp' => 'last_comment_timestamp', |
|
963 | - 'new_comments' => 'new_comments', |
|
964 | - 'status' => 'status', |
|
965 | - 'sticky' => 'sticky', |
|
966 | - 'nid' => 'nid', |
|
967 | - 'comment' => 'comment', |
|
968 | - 'timestamp' => 'timestamp', |
|
969 | - 'uid' => 'uid', |
|
959 | + 'title' => 'title', |
|
960 | + 'comment_count' => 'comment_count', |
|
961 | + 'created' => 'created', |
|
962 | + 'last_comment_timestamp' => 'last_comment_timestamp', |
|
963 | + 'new_comments' => 'new_comments', |
|
964 | + 'status' => 'status', |
|
965 | + 'sticky' => 'sticky', |
|
966 | + 'nid' => 'nid', |
|
967 | + 'comment' => 'comment', |
|
968 | + 'timestamp' => 'timestamp', |
|
969 | + 'uid' => 'uid', |
|
970 | 970 | ), |
971 | 971 | 'info' => array( |
972 | - 'title' => array( |
|
972 | + 'title' => array( |
|
973 | 973 | 'sortable' => 1, |
974 | 974 | 'separator' => '', |
975 | - ), |
|
976 | - 'comment_count' => array( |
|
975 | + ), |
|
976 | + 'comment_count' => array( |
|
977 | 977 | 'sortable' => 1, |
978 | 978 | 'separator' => '', |
979 | - ), |
|
980 | - 'created' => array( |
|
979 | + ), |
|
980 | + 'created' => array( |
|
981 | 981 | 'sortable' => 1, |
982 | 982 | 'separator' => '', |
983 | - ), |
|
984 | - 'last_comment_timestamp' => array( |
|
983 | + ), |
|
984 | + 'last_comment_timestamp' => array( |
|
985 | 985 | 'sortable' => 1, |
986 | 986 | 'separator' => '', |
987 | - ), |
|
988 | - 'new_comments' => array( |
|
987 | + ), |
|
988 | + 'new_comments' => array( |
|
989 | 989 | 'separator' => '', |
990 | - ), |
|
991 | - 'status' => array( |
|
990 | + ), |
|
991 | + 'status' => array( |
|
992 | 992 | 'sortable' => 0, |
993 | 993 | 'separator' => '', |
994 | - ), |
|
995 | - 'sticky' => array( |
|
994 | + ), |
|
995 | + 'sticky' => array( |
|
996 | 996 | 'sortable' => 0, |
997 | 997 | 'separator' => '', |
998 | - ), |
|
999 | - 'nid' => array( |
|
998 | + ), |
|
999 | + 'nid' => array( |
|
1000 | 1000 | 'sortable' => 0, |
1001 | 1001 | 'separator' => '', |
1002 | - ), |
|
1003 | - 'comment' => array( |
|
1002 | + ), |
|
1003 | + 'comment' => array( |
|
1004 | 1004 | 'sortable' => 0, |
1005 | 1005 | 'separator' => '', |
1006 | - ), |
|
1007 | - 'timestamp' => array( |
|
1006 | + ), |
|
1007 | + 'timestamp' => array( |
|
1008 | 1008 | 'separator' => '', |
1009 | - ), |
|
1010 | - 'uid' => array( |
|
1009 | + ), |
|
1010 | + 'uid' => array( |
|
1011 | 1011 | 'sortable' => 0, |
1012 | 1012 | 'separator' => '', |
1013 | - ), |
|
1013 | + ), |
|
1014 | 1014 | ), |
1015 | 1015 | 'default' => '-1', |
1016 | - )); |
|
1017 | - $handler->override_option('pane_title', ''); |
|
1018 | - $handler->override_option('pane_description', ''); |
|
1019 | - $handler->override_option('pane_category', array( |
|
1016 | + )); |
|
1017 | + $handler->override_option('pane_title', ''); |
|
1018 | + $handler->override_option('pane_description', ''); |
|
1019 | + $handler->override_option('pane_category', array( |
|
1020 | 1020 | 'name' => 'View panes', |
1021 | 1021 | 'weight' => 0, |
1022 | - )); |
|
1023 | - $handler->override_option('allow', array( |
|
1022 | + )); |
|
1023 | + $handler->override_option('allow', array( |
|
1024 | 1024 | 'use_pager' => 0, |
1025 | 1025 | 'items_per_page' => 0, |
1026 | 1026 | 'offset' => 0, |
@@ -1030,21 +1030,21 @@ discard block |
||
1030 | 1030 | 'title_override' => 'title_override', |
1031 | 1031 | 'exposed_form' => 0, |
1032 | 1032 | 'fields_override' => 0, |
1033 | - )); |
|
1034 | - $handler->override_option('argument_input', array( |
|
1033 | + )); |
|
1034 | + $handler->override_option('argument_input', array( |
|
1035 | 1035 | 'tfid' => array( |
1036 | - 'type' => 'panel', |
|
1037 | - 'context' => 'term.description', |
|
1038 | - 'context_optional' => 0, |
|
1039 | - 'panel' => '1', |
|
1040 | - 'fixed' => '', |
|
1041 | - 'label' => 'BOINC: Team forum ID', |
|
1036 | + 'type' => 'panel', |
|
1037 | + 'context' => 'term.description', |
|
1038 | + 'context_optional' => 0, |
|
1039 | + 'panel' => '1', |
|
1040 | + 'fixed' => '', |
|
1041 | + 'label' => 'BOINC: Team forum ID', |
|
1042 | 1042 | ), |
1043 | - )); |
|
1044 | - $handler->override_option('link_to_view', 0); |
|
1045 | - $handler->override_option('inherit_panels_path', 0); |
|
1043 | + )); |
|
1044 | + $handler->override_option('link_to_view', 0); |
|
1045 | + $handler->override_option('inherit_panels_path', 0); |
|
1046 | 1046 | |
1047 | - $views[$view->name] = $view; |
|
1047 | + $views[$view->name] = $view; |
|
1048 | 1048 | |
1049 | - return $views; |
|
1049 | + return $views; |
|
1050 | 1050 | } |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | $view->base_table = 'boincteam_forum_node'; |
15 | 15 | $view->core = 6; |
16 | 16 | $view->api_version = '2'; |
17 | - $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
|
17 | + $view->disabled = false; /* Edit this to true to make a default view disabled initially */ |
|
18 | 18 | $handler = $view->new_display('default', 'Defaults', 'default'); |
19 | 19 | $handler->override_option('relationships', array( |
20 | 20 | 'nid' => array( |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | 'hide_empty' => 0, |
87 | 87 | 'empty_zero' => 0, |
88 | 88 | 'hide_alter_empty' => 0, |
89 | - 'set_precision' => FALSE, |
|
89 | + 'set_precision' => false, |
|
90 | 90 | 'precision' => 0, |
91 | 91 | 'decimal' => '.', |
92 | 92 | 'separator' => ',', |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | 'hide_empty' => 0, |
199 | 199 | 'empty_zero' => 0, |
200 | 200 | 'hide_alter_empty' => 1, |
201 | - 'set_precision' => FALSE, |
|
201 | + 'set_precision' => false, |
|
202 | 202 | 'precision' => 0, |
203 | 203 | 'decimal' => '.', |
204 | 204 | 'separator' => ',', |
@@ -581,7 +581,7 @@ discard block |
||
581 | 581 | 'hide_empty' => 0, |
582 | 582 | 'empty_zero' => 0, |
583 | 583 | 'hide_alter_empty' => 0, |
584 | - 'set_precision' => FALSE, |
|
584 | + 'set_precision' => false, |
|
585 | 585 | 'precision' => 0, |
586 | 586 | 'decimal' => '.', |
587 | 587 | 'separator' => ',', |
@@ -693,7 +693,7 @@ discard block |
||
693 | 693 | 'hide_empty' => 0, |
694 | 694 | 'empty_zero' => 0, |
695 | 695 | 'hide_alter_empty' => 1, |
696 | - 'set_precision' => FALSE, |
|
696 | + 'set_precision' => false, |
|
697 | 697 | 'precision' => 0, |
698 | 698 | 'decimal' => '.', |
699 | 699 | 'separator' => ',', |
@@ -4,58 +4,58 @@ |
||
4 | 4 | * Implementation of hook_context_default_contexts(). |
5 | 5 | */ |
6 | 6 | function team_forums_context_default_contexts() { |
7 | - $export = array(); |
|
7 | + $export = array(); |
|
8 | 8 | |
9 | - $context = new stdClass; |
|
10 | - $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */ |
|
11 | - $context->api_version = 3; |
|
12 | - $context->name = 'team_forum_topic'; |
|
13 | - $context->description = 'Highlight the Message Boards submenu when viewing a team forum topic'; |
|
14 | - $context->tag = 'community'; |
|
15 | - $context->conditions = array( |
|
9 | + $context = new stdClass; |
|
10 | + $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */ |
|
11 | + $context->api_version = 3; |
|
12 | + $context->name = 'team_forum_topic'; |
|
13 | + $context->description = 'Highlight the Message Boards submenu when viewing a team forum topic'; |
|
14 | + $context->tag = 'community'; |
|
15 | + $context->conditions = array( |
|
16 | 16 | 'node' => array( |
17 | - 'values' => array( |
|
17 | + 'values' => array( |
|
18 | 18 | 'team_forum' => 'team_forum', |
19 | - ), |
|
20 | - 'options' => array( |
|
19 | + ), |
|
20 | + 'options' => array( |
|
21 | 21 | 'node_form' => '1', |
22 | - ), |
|
22 | + ), |
|
23 | 23 | ), |
24 | - ); |
|
25 | - $context->reactions = array( |
|
24 | + ); |
|
25 | + $context->reactions = array( |
|
26 | 26 | 'menu' => 'community/forum', |
27 | - ); |
|
28 | - $context->condition_mode = 0; |
|
27 | + ); |
|
28 | + $context->condition_mode = 0; |
|
29 | 29 | |
30 | - // Translatables |
|
31 | - // Included for use with string extractors like potx. |
|
32 | - t('Highlight the Message Boards submenu when viewing a team forum topic'); |
|
33 | - t('community'); |
|
34 | - $export['team_forum_topic'] = $context; |
|
30 | + // Translatables |
|
31 | + // Included for use with string extractors like potx. |
|
32 | + t('Highlight the Message Boards submenu when viewing a team forum topic'); |
|
33 | + t('community'); |
|
34 | + $export['team_forum_topic'] = $context; |
|
35 | 35 | |
36 | - $context = new stdClass; |
|
37 | - $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */ |
|
38 | - $context->api_version = 3; |
|
39 | - $context->name = 'team_forums'; |
|
40 | - $context->description = 'Highlight the Message Boards submenu when viewing a team forum'; |
|
41 | - $context->tag = 'community'; |
|
42 | - $context->conditions = array( |
|
36 | + $context = new stdClass; |
|
37 | + $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */ |
|
38 | + $context->api_version = 3; |
|
39 | + $context->name = 'team_forums'; |
|
40 | + $context->description = 'Highlight the Message Boards submenu when viewing a team forum'; |
|
41 | + $context->tag = 'community'; |
|
42 | + $context->conditions = array( |
|
43 | 43 | 'path' => array( |
44 | - 'values' => array( |
|
44 | + 'values' => array( |
|
45 | 45 | 'community/teams/*/forum/*' => 'community/teams/*/forum/*', |
46 | - ), |
|
46 | + ), |
|
47 | 47 | ), |
48 | - ); |
|
49 | - $context->reactions = array( |
|
48 | + ); |
|
49 | + $context->reactions = array( |
|
50 | 50 | 'menu' => 'community/forum', |
51 | - ); |
|
52 | - $context->condition_mode = 0; |
|
51 | + ); |
|
52 | + $context->condition_mode = 0; |
|
53 | 53 | |
54 | - // Translatables |
|
55 | - // Included for use with string extractors like potx. |
|
56 | - t('Highlight the Message Boards submenu when viewing a team forum'); |
|
57 | - t('community'); |
|
58 | - $export['team_forums'] = $context; |
|
54 | + // Translatables |
|
55 | + // Included for use with string extractors like potx. |
|
56 | + t('Highlight the Message Boards submenu when viewing a team forum'); |
|
57 | + t('community'); |
|
58 | + $export['team_forums'] = $context; |
|
59 | 59 | |
60 | - return $export; |
|
60 | + return $export; |
|
61 | 61 | } |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | $export = array(); |
8 | 8 | |
9 | 9 | $context = new stdClass; |
10 | - $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */ |
|
10 | + $context->disabled = false; /* Edit this to true to make a default context disabled initially */ |
|
11 | 11 | $context->api_version = 3; |
12 | 12 | $context->name = 'team_forum_topic'; |
13 | 13 | $context->description = 'Highlight the Message Boards submenu when viewing a team forum topic'; |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | $export['team_forum_topic'] = $context; |
35 | 35 | |
36 | 36 | $context = new stdClass; |
37 | - $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */ |
|
37 | + $context->disabled = false; /* Edit this to true to make a default context disabled initially */ |
|
38 | 38 | $context->api_version = 3; |
39 | 39 | $context->name = 'team_forums'; |
40 | 40 | $context->description = 'Highlight the Message Boards submenu when viewing a team forum'; |
@@ -4,43 +4,43 @@ |
||
4 | 4 | * Implementation of hook_ctools_plugin_api(). |
5 | 5 | */ |
6 | 6 | function team_forums_ctools_plugin_api() { |
7 | - list($module, $api) = func_get_args(); |
|
8 | - if ($module == "context" && $api == "context") { |
|
7 | + list($module, $api) = func_get_args(); |
|
8 | + if ($module == "context" && $api == "context") { |
|
9 | 9 | return array("version" => 3); |
10 | - } |
|
11 | - elseif ($module == "page_manager" && $api == "pages_default") { |
|
10 | + } |
|
11 | + elseif ($module == "page_manager" && $api == "pages_default") { |
|
12 | 12 | return array("version" => 1); |
13 | - } |
|
14 | - elseif ($module == "strongarm" && $api == "strongarm") { |
|
13 | + } |
|
14 | + elseif ($module == "strongarm" && $api == "strongarm") { |
|
15 | 15 | return array("version" => 1); |
16 | - } |
|
16 | + } |
|
17 | 17 | } |
18 | 18 | |
19 | 19 | /** |
20 | 20 | * Implementation of hook_node_info(). |
21 | 21 | */ |
22 | 22 | function team_forums_node_info() { |
23 | - $items = array( |
|
23 | + $items = array( |
|
24 | 24 | 'team_forum' => array( |
25 | - 'name' => t('Team forum topic'), |
|
26 | - 'module' => 'features', |
|
27 | - 'description' => t('A <em>team forum topic</em> is a special topic within a team forum. This may or may not be visible only to members of the corresponding team.'), |
|
28 | - 'has_title' => '1', |
|
29 | - 'title_label' => t('Subject'), |
|
30 | - 'has_body' => '1', |
|
31 | - 'body_label' => t('Body'), |
|
32 | - 'min_word_count' => '0', |
|
33 | - 'help' => '', |
|
25 | + 'name' => t('Team forum topic'), |
|
26 | + 'module' => 'features', |
|
27 | + 'description' => t('A <em>team forum topic</em> is a special topic within a team forum. This may or may not be visible only to members of the corresponding team.'), |
|
28 | + 'has_title' => '1', |
|
29 | + 'title_label' => t('Subject'), |
|
30 | + 'has_body' => '1', |
|
31 | + 'body_label' => t('Body'), |
|
32 | + 'min_word_count' => '0', |
|
33 | + 'help' => '', |
|
34 | 34 | ), |
35 | - ); |
|
36 | - return $items; |
|
35 | + ); |
|
36 | + return $items; |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
40 | 40 | * Implementation of hook_views_api(). |
41 | 41 | */ |
42 | 42 | function team_forums_views_api() { |
43 | - return array( |
|
43 | + return array( |
|
44 | 44 | 'api' => '2', |
45 | - ); |
|
45 | + ); |
|
46 | 46 | } |
@@ -7,11 +7,9 @@ |
||
7 | 7 | list($module, $api) = func_get_args(); |
8 | 8 | if ($module == "context" && $api == "context") { |
9 | 9 | return array("version" => 3); |
10 | - } |
|
11 | - elseif ($module == "page_manager" && $api == "pages_default") { |
|
10 | + } elseif ($module == "page_manager" && $api == "pages_default") { |
|
12 | 11 | return array("version" => 1); |
13 | - } |
|
14 | - elseif ($module == "strongarm" && $api == "strongarm") { |
|
12 | + } elseif ($module == "strongarm" && $api == "strongarm") { |
|
15 | 13 | return array("version" => 1); |
16 | 14 | } |
17 | 15 | } |
@@ -4,55 +4,55 @@ |
||
4 | 4 | * Implementation of hook_user_default_permissions(). |
5 | 5 | */ |
6 | 6 | function team_forums_user_default_permissions() { |
7 | - $permissions = array(); |
|
7 | + $permissions = array(); |
|
8 | 8 | |
9 | - // Exported permission: create team_forum content |
|
10 | - $permissions['create team_forum content'] = array( |
|
9 | + // Exported permission: create team_forum content |
|
10 | + $permissions['create team_forum content'] = array( |
|
11 | 11 | 'name' => 'create team_forum content', |
12 | 12 | 'roles' => array( |
13 | - '0' => 'verified contributor', |
|
13 | + '0' => 'verified contributor', |
|
14 | 14 | ), |
15 | - ); |
|
15 | + ); |
|
16 | 16 | |
17 | - // Exported permission: delete any team_forum content |
|
18 | - $permissions['delete any team_forum content'] = array( |
|
17 | + // Exported permission: delete any team_forum content |
|
18 | + $permissions['delete any team_forum content'] = array( |
|
19 | 19 | 'name' => 'delete any team_forum content', |
20 | 20 | 'roles' => array( |
21 | - '0' => 'administrator', |
|
21 | + '0' => 'administrator', |
|
22 | 22 | ), |
23 | - ); |
|
23 | + ); |
|
24 | 24 | |
25 | - // Exported permission: delete own team_forum content |
|
26 | - $permissions['delete own team_forum content'] = array( |
|
25 | + // Exported permission: delete own team_forum content |
|
26 | + $permissions['delete own team_forum content'] = array( |
|
27 | 27 | 'name' => 'delete own team_forum content', |
28 | 28 | 'roles' => array( |
29 | - '0' => 'community member', |
|
29 | + '0' => 'community member', |
|
30 | 30 | ), |
31 | - ); |
|
31 | + ); |
|
32 | 32 | |
33 | - // Exported permission: edit any team_forum content |
|
34 | - $permissions['edit any team_forum content'] = array( |
|
33 | + // Exported permission: edit any team_forum content |
|
34 | + $permissions['edit any team_forum content'] = array( |
|
35 | 35 | 'name' => 'edit any team_forum content', |
36 | 36 | 'roles' => array( |
37 | - '0' => 'administrator', |
|
37 | + '0' => 'administrator', |
|
38 | 38 | ), |
39 | - ); |
|
39 | + ); |
|
40 | 40 | |
41 | - // Exported permission: edit own team_forum content |
|
42 | - $permissions['edit own team_forum content'] = array( |
|
41 | + // Exported permission: edit own team_forum content |
|
42 | + $permissions['edit own team_forum content'] = array( |
|
43 | 43 | 'name' => 'edit own team_forum content', |
44 | 44 | 'roles' => array( |
45 | - '0' => 'verified contributor', |
|
45 | + '0' => 'verified contributor', |
|
46 | 46 | ), |
47 | - ); |
|
47 | + ); |
|
48 | 48 | |
49 | - // Exported permission: manage boincteam forum |
|
50 | - $permissions['manage boincteam forum'] = array( |
|
49 | + // Exported permission: manage boincteam forum |
|
50 | + $permissions['manage boincteam forum'] = array( |
|
51 | 51 | 'name' => 'manage boincteam forum', |
52 | 52 | 'roles' => array( |
53 | - '0' => 'administrator', |
|
53 | + '0' => 'administrator', |
|
54 | 54 | ), |
55 | - ); |
|
55 | + ); |
|
56 | 56 | |
57 | - return $permissions; |
|
57 | + return $permissions; |
|
58 | 58 | } |
@@ -7,8 +7,7 @@ |
||
7 | 7 | list($module, $api) = func_get_args(); |
8 | 8 | if ($module == "page_manager" && $api == "pages_default") { |
9 | 9 | return array("version" => 1); |
10 | - } |
|
11 | - elseif ($module == "strongarm" && $api == "strongarm") { |
|
10 | + } elseif ($module == "strongarm" && $api == "strongarm") { |
|
12 | 11 | return array("version" => 1); |
13 | 12 | } |
14 | 13 | } |
@@ -4,152 +4,152 @@ |
||
4 | 4 | * Implementation of hook_ctools_plugin_api(). |
5 | 5 | */ |
6 | 6 | function teams_ctools_plugin_api() { |
7 | - list($module, $api) = func_get_args(); |
|
8 | - if ($module == "page_manager" && $api == "pages_default") { |
|
7 | + list($module, $api) = func_get_args(); |
|
8 | + if ($module == "page_manager" && $api == "pages_default") { |
|
9 | 9 | return array("version" => 1); |
10 | - } |
|
11 | - elseif ($module == "strongarm" && $api == "strongarm") { |
|
10 | + } |
|
11 | + elseif ($module == "strongarm" && $api == "strongarm") { |
|
12 | 12 | return array("version" => 1); |
13 | - } |
|
13 | + } |
|
14 | 14 | } |
15 | 15 | |
16 | 16 | /** |
17 | 17 | * Implementation of hook_node_info(). |
18 | 18 | */ |
19 | 19 | function teams_node_info() { |
20 | - $items = array( |
|
20 | + $items = array( |
|
21 | 21 | 'team' => array( |
22 | - 'name' => t('Team'), |
|
23 | - 'module' => 'features', |
|
24 | - 'description' => t('A grouping of users, centered on a common interest.'), |
|
25 | - 'has_title' => '1', |
|
26 | - 'title_label' => t('Name'), |
|
27 | - 'has_body' => '1', |
|
28 | - 'body_label' => t('Description'), |
|
29 | - 'min_word_count' => '0', |
|
30 | - 'help' => '', |
|
22 | + 'name' => t('Team'), |
|
23 | + 'module' => 'features', |
|
24 | + 'description' => t('A grouping of users, centered on a common interest.'), |
|
25 | + 'has_title' => '1', |
|
26 | + 'title_label' => t('Name'), |
|
27 | + 'has_body' => '1', |
|
28 | + 'body_label' => t('Description'), |
|
29 | + 'min_word_count' => '0', |
|
30 | + 'help' => '', |
|
31 | 31 | ), |
32 | - ); |
|
33 | - return $items; |
|
32 | + ); |
|
33 | + return $items; |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
37 | 37 | * Implementation of hook_rules_defaults(). |
38 | 38 | */ |
39 | 39 | function teams_rules_defaults() { |
40 | - return array( |
|
40 | + return array( |
|
41 | 41 | 'rules' => array( |
42 | - 'rules_notify_admins_about_error_creating_a_boinc_team' => array( |
|
42 | + 'rules_notify_admins_about_error_creating_a_boinc_team' => array( |
|
43 | 43 | '#type' => 'rule', |
44 | 44 | '#set' => 'event_boincteam_create_team_error', |
45 | 45 | '#label' => 'Notify admins about error creating a BOINC team', |
46 | 46 | '#active' => 1, |
47 | 47 | '#weight' => '0', |
48 | 48 | '#categories' => array( |
49 | - '0' => 'boinc_team', |
|
50 | - 'teams' => 'teams', |
|
49 | + '0' => 'boinc_team', |
|
50 | + 'teams' => 'teams', |
|
51 | 51 | ), |
52 | 52 | '#status' => 'default', |
53 | 53 | '#conditions' => array(), |
54 | 54 | '#actions' => array( |
55 | - '0' => array( |
|
55 | + '0' => array( |
|
56 | 56 | '#type' => 'action', |
57 | 57 | '#settings' => array( |
58 | - 'from' => '', |
|
59 | - 'subject' => '[subject_tag:string] Error creating new team', |
|
60 | - 'message' => '[user:display-name] attempted to create team [team_name:string], but an error was returned. See function \'boincteam_create_form_submit\'. BOINC function \'make_team\' did not return a valid boinc_team object.', |
|
61 | - '#eval input' => array( |
|
58 | + 'from' => '', |
|
59 | + 'subject' => '[subject_tag:string] Error creating new team', |
|
60 | + 'message' => '[user:display-name] attempted to create team [team_name:string], but an error was returned. See function \'boincteam_create_form_submit\'. BOINC function \'make_team\' did not return a valid boinc_team object.', |
|
61 | + '#eval input' => array( |
|
62 | 62 | 'token_rules_input_evaluator' => array( |
63 | - 'subject' => array( |
|
63 | + 'subject' => array( |
|
64 | 64 | '0' => 'subject_tag', |
65 | 65 | '1' => ':global', |
66 | - ), |
|
67 | - 'message' => array( |
|
66 | + ), |
|
67 | + 'message' => array( |
|
68 | 68 | '0' => 'team_name', |
69 | 69 | '1' => 'user', |
70 | 70 | '2' => ':global', |
71 | - ), |
|
72 | - 'from' => array( |
|
71 | + ), |
|
72 | + 'from' => array( |
|
73 | 73 | '0' => ':global', |
74 | - ), |
|
74 | + ), |
|
75 | + ), |
|
75 | 76 | ), |
76 | - ), |
|
77 | 77 | ), |
78 | 78 | '#name' => 'boinccore_rules_action_mail_to_admins', |
79 | 79 | '#info' => array( |
80 | - 'label' => 'Notify admins via email', |
|
81 | - 'module' => 'BOINC core', |
|
82 | - 'eval input' => array( |
|
80 | + 'label' => 'Notify admins via email', |
|
81 | + 'module' => 'BOINC core', |
|
82 | + 'eval input' => array( |
|
83 | 83 | '0' => 'subject', |
84 | 84 | '1' => 'message', |
85 | 85 | '2' => 'from', |
86 | - ), |
|
86 | + ), |
|
87 | 87 | ), |
88 | 88 | '#weight' => 0.0, |
89 | - ), |
|
89 | + ), |
|
90 | 90 | ), |
91 | 91 | '#version' => 6003, |
92 | - ), |
|
93 | - 'rules_notify_admins_about_error_creating_a_boinc_team_no_pathauto' => array( |
|
92 | + ), |
|
93 | + 'rules_notify_admins_about_error_creating_a_boinc_team_no_pathauto' => array( |
|
94 | 94 | '#type' => 'rule', |
95 | 95 | '#set' => 'event_boincteam_create_team_nopathauto_error', |
96 | 96 | '#label' => 'Notify admins about error creating a BOINC team no pathauto', |
97 | 97 | '#active' => 1, |
98 | 98 | '#weight' => '0', |
99 | 99 | '#categories' => array( |
100 | - '0' => 'boinc_team', |
|
101 | - 'teams' => 'teams', |
|
100 | + '0' => 'boinc_team', |
|
101 | + 'teams' => 'teams', |
|
102 | 102 | ), |
103 | 103 | '#status' => 'default', |
104 | 104 | '#conditions' => array(), |
105 | 105 | '#actions' => array( |
106 | - '0' => array( |
|
106 | + '0' => array( |
|
107 | 107 | '#type' => 'action', |
108 | 108 | '#settings' => array( |
109 | - 'from' => '', |
|
110 | - 'subject' => '[subject_tag:string] Error creating BOINC team - no pathauo module', |
|
111 | - 'message' => '[user:display-name] attempted to create team [team_name:string], but no pathauto module detected. See function \'boincteam_create_form_submit\'.', |
|
112 | - '#eval input' => array( |
|
109 | + 'from' => '', |
|
110 | + 'subject' => '[subject_tag:string] Error creating BOINC team - no pathauo module', |
|
111 | + 'message' => '[user:display-name] attempted to create team [team_name:string], but no pathauto module detected. See function \'boincteam_create_form_submit\'.', |
|
112 | + '#eval input' => array( |
|
113 | 113 | 'token_rules_input_evaluator' => array( |
114 | - 'subject' => array( |
|
114 | + 'subject' => array( |
|
115 | 115 | '0' => 'subject_tag', |
116 | 116 | '1' => ':global', |
117 | - ), |
|
118 | - 'message' => array( |
|
117 | + ), |
|
118 | + 'message' => array( |
|
119 | 119 | '0' => 'team_name', |
120 | 120 | '1' => 'user', |
121 | 121 | '2' => ':global', |
122 | - ), |
|
123 | - 'from' => array( |
|
122 | + ), |
|
123 | + 'from' => array( |
|
124 | 124 | '0' => ':global', |
125 | - ), |
|
125 | + ), |
|
126 | + ), |
|
126 | 127 | ), |
127 | - ), |
|
128 | 128 | ), |
129 | 129 | '#name' => 'boinccore_rules_action_mail_to_admins', |
130 | 130 | '#info' => array( |
131 | - 'label' => 'Notify admins via email', |
|
132 | - 'module' => 'BOINC core', |
|
133 | - 'eval input' => array( |
|
131 | + 'label' => 'Notify admins via email', |
|
132 | + 'module' => 'BOINC core', |
|
133 | + 'eval input' => array( |
|
134 | 134 | '0' => 'subject', |
135 | 135 | '1' => 'message', |
136 | 136 | '2' => 'from', |
137 | - ), |
|
137 | + ), |
|
138 | 138 | ), |
139 | 139 | '#weight' => 0.0, |
140 | - ), |
|
140 | + ), |
|
141 | 141 | ), |
142 | 142 | '#version' => 6003, |
143 | - ), |
|
143 | + ), |
|
144 | 144 | ), |
145 | - ); |
|
145 | + ); |
|
146 | 146 | } |
147 | 147 | |
148 | 148 | /** |
149 | 149 | * Implementation of hook_views_api(). |
150 | 150 | */ |
151 | 151 | function teams_views_api() { |
152 | - return array( |
|
152 | + return array( |
|
153 | 153 | 'api' => '2', |
154 | - ); |
|
154 | + ); |
|
155 | 155 | } |