@@ -6,16 +6,16 @@ |
||
6 | 6 | * Make some changes to configurations after the feature has been enabled |
7 | 7 | */ |
8 | 8 | function boinc_standard_enable() { |
9 | - // Ensure that the default theme is enabled. A bit ridiculous, but it is |
|
10 | - // possible for this not to be the case. |
|
11 | - $default_theme = variable_get('theme_default', 'boinc'); |
|
12 | - // If default theme is garland, this is because the boinc_standard feature |
|
13 | - // has not been reverted yet. Work around this by forcing it to default to |
|
14 | - // the boinc theme |
|
15 | - if ($default_theme == 'garland') { |
|
16 | - $default_theme = 'boinc'; |
|
17 | - variable_set('theme_default', $default_theme); |
|
18 | - } |
|
19 | - $default_theme_enabled = db_query("UPDATE {system} SET status = 1 |
|
9 | +// Ensure that the default theme is enabled. A bit ridiculous, but it is |
|
10 | +// possible for this not to be the case. |
|
11 | +$default_theme = variable_get('theme_default', 'boinc'); |
|
12 | +// If default theme is garland, this is because the boinc_standard feature |
|
13 | +// has not been reverted yet. Work around this by forcing it to default to |
|
14 | +// the boinc theme |
|
15 | +if ($default_theme == 'garland') { |
|
16 | +$default_theme = 'boinc'; |
|
17 | +variable_set('theme_default', $default_theme); |
|
18 | +} |
|
19 | +$default_theme_enabled = db_query("UPDATE {system} SET status = 1 |
|
20 | 20 | WHERE type = 'theme' and name = '%s'", $default_theme); |
21 | 21 | } |
@@ -4,31 +4,31 @@ |
||
4 | 4 | * Implementation of hook_role_export_defaults(). |
5 | 5 | */ |
6 | 6 | function boinc_standard_role_export_defaults() { |
7 | - $roles = array(); |
|
7 | +$roles = array(); |
|
8 | 8 | |
9 | - $roles['administrator'] = array( |
|
10 | - 'rid' => '3519698132', |
|
11 | - 'name' => 'administrator', |
|
12 | - 'machine_name' => 'administrator', |
|
13 | - ); |
|
9 | +$roles['administrator'] = array( |
|
10 | +'rid' => '3519698132', |
|
11 | +'name' => 'administrator', |
|
12 | +'machine_name' => 'administrator', |
|
13 | +); |
|
14 | 14 | |
15 | - $roles['community_member'] = array( |
|
16 | - 'rid' => '1110965548', |
|
17 | - 'name' => 'community member', |
|
18 | - 'machine_name' => 'community_member', |
|
19 | - ); |
|
15 | +$roles['community_member'] = array( |
|
16 | +'rid' => '1110965548', |
|
17 | +'name' => 'community member', |
|
18 | +'machine_name' => 'community_member', |
|
19 | +); |
|
20 | 20 | |
21 | - $roles['content_editor'] = array( |
|
22 | - 'rid' => '2938987599', |
|
23 | - 'name' => 'content editor', |
|
24 | - 'machine_name' => 'content_editor', |
|
25 | - ); |
|
21 | +$roles['content_editor'] = array( |
|
22 | +'rid' => '2938987599', |
|
23 | +'name' => 'content editor', |
|
24 | +'machine_name' => 'content_editor', |
|
25 | +); |
|
26 | 26 | |
27 | - $roles['verified_contributor'] = array( |
|
28 | - 'rid' => '933038561', |
|
29 | - 'name' => 'verified contributor', |
|
30 | - 'machine_name' => 'verified_contributor', |
|
31 | - ); |
|
27 | +$roles['verified_contributor'] = array( |
|
28 | +'rid' => '933038561', |
|
29 | +'name' => 'verified contributor', |
|
30 | +'machine_name' => 'verified_contributor', |
|
31 | +); |
|
32 | 32 | |
33 | - return $roles; |
|
33 | +return $roles; |
|
34 | 34 | } |
@@ -4,456 +4,456 @@ |
||
4 | 4 | * Implementation of hook_views_default_views(). |
5 | 5 | */ |
6 | 6 | function boinc_standard_views_default_views() { |
7 | - $views = array(); |
|
7 | +$views = array(); |
|
8 | 8 | |
9 | - // Exported view: admin_user_search |
|
10 | - $view = new view; |
|
11 | - $view->name = 'admin_user_search'; |
|
12 | - $view->description = 'Administrator User Search'; |
|
13 | - $view->tag = ''; |
|
14 | - $view->base_table = 'users'; |
|
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('fields', array( |
|
20 | - 'uid' => array( |
|
21 | - 'label' => 'Uid', |
|
22 | - 'alter' => array( |
|
23 | - 'alter_text' => 0, |
|
24 | - 'text' => '', |
|
25 | - 'make_link' => 0, |
|
26 | - 'path' => 'account/[uid]', |
|
27 | - 'absolute' => 0, |
|
28 | - 'link_class' => '', |
|
29 | - 'alt' => '', |
|
30 | - 'rel' => '', |
|
31 | - 'prefix' => '', |
|
32 | - 'suffix' => '', |
|
33 | - 'target' => '', |
|
34 | - 'help' => '', |
|
35 | - 'trim' => 0, |
|
36 | - 'max_length' => '', |
|
37 | - 'word_boundary' => 1, |
|
38 | - 'ellipsis' => 1, |
|
39 | - 'html' => 0, |
|
40 | - 'strip_tags' => 0, |
|
41 | - ), |
|
42 | - 'empty' => '', |
|
43 | - 'hide_empty' => 0, |
|
44 | - 'empty_zero' => 0, |
|
45 | - 'hide_alter_empty' => 1, |
|
46 | - 'link_to_user' => 0, |
|
47 | - 'exclude' => 0, |
|
48 | - 'id' => 'uid', |
|
49 | - 'table' => 'users', |
|
50 | - 'field' => 'uid', |
|
51 | - 'relationship' => 'none', |
|
52 | - ), |
|
53 | - 'name' => array( |
|
54 | - 'label' => 'Name', |
|
55 | - 'alter' => array( |
|
56 | - 'alter_text' => 0, |
|
57 | - 'text' => '', |
|
58 | - 'make_link' => 1, |
|
59 | - 'path' => 'account/[uid]', |
|
60 | - 'absolute' => 0, |
|
61 | - 'link_class' => '', |
|
62 | - 'alt' => '', |
|
63 | - 'rel' => '', |
|
64 | - 'prefix' => '', |
|
65 | - 'suffix' => '', |
|
66 | - 'target' => '', |
|
67 | - 'help' => '', |
|
68 | - 'trim' => 0, |
|
69 | - 'max_length' => '', |
|
70 | - 'word_boundary' => 1, |
|
71 | - 'ellipsis' => 1, |
|
72 | - 'html' => 0, |
|
73 | - 'strip_tags' => 0, |
|
74 | - ), |
|
75 | - 'empty' => '', |
|
76 | - 'hide_empty' => 0, |
|
77 | - 'empty_zero' => 0, |
|
78 | - 'hide_alter_empty' => 1, |
|
79 | - 'link_to_user' => 0, |
|
80 | - 'overwrite_anonymous' => 0, |
|
81 | - 'anonymous_text' => '', |
|
82 | - 'exclude' => 0, |
|
83 | - 'id' => 'name', |
|
84 | - 'table' => 'users', |
|
85 | - 'field' => 'name', |
|
86 | - 'relationship' => 'none', |
|
87 | - ), |
|
88 | - 'phpcode' => array( |
|
89 | - 'label' => 'BOINC user name', |
|
90 | - 'alter' => array( |
|
91 | - 'alter_text' => 0, |
|
92 | - 'text' => '', |
|
93 | - 'make_link' => 1, |
|
94 | - 'path' => 'account/[uid]', |
|
95 | - 'absolute' => 0, |
|
96 | - 'link_class' => '', |
|
97 | - 'alt' => '', |
|
98 | - 'rel' => '', |
|
99 | - 'prefix' => '', |
|
100 | - 'suffix' => '', |
|
101 | - 'target' => '', |
|
102 | - 'help' => '', |
|
103 | - 'trim' => 0, |
|
104 | - 'max_length' => '', |
|
105 | - 'word_boundary' => 1, |
|
106 | - 'ellipsis' => 1, |
|
107 | - 'html' => 0, |
|
108 | - 'strip_tags' => 0, |
|
109 | - ), |
|
110 | - 'empty' => '', |
|
111 | - 'hide_empty' => 0, |
|
112 | - 'empty_zero' => 0, |
|
113 | - 'hide_alter_empty' => 1, |
|
114 | - 'value' => '<?php |
|
9 | +// Exported view: admin_user_search |
|
10 | +$view = new view; |
|
11 | +$view->name = 'admin_user_search'; |
|
12 | +$view->description = 'Administrator User Search'; |
|
13 | +$view->tag = ''; |
|
14 | +$view->base_table = 'users'; |
|
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('fields', array( |
|
20 | +'uid' => array( |
|
21 | + 'label' => 'Uid', |
|
22 | + 'alter' => array( |
|
23 | + 'alter_text' => 0, |
|
24 | + 'text' => '', |
|
25 | + 'make_link' => 0, |
|
26 | + 'path' => 'account/[uid]', |
|
27 | + 'absolute' => 0, |
|
28 | + 'link_class' => '', |
|
29 | + 'alt' => '', |
|
30 | + 'rel' => '', |
|
31 | + 'prefix' => '', |
|
32 | + 'suffix' => '', |
|
33 | + 'target' => '', |
|
34 | + 'help' => '', |
|
35 | + 'trim' => 0, |
|
36 | + 'max_length' => '', |
|
37 | + 'word_boundary' => 1, |
|
38 | + 'ellipsis' => 1, |
|
39 | + 'html' => 0, |
|
40 | + 'strip_tags' => 0, |
|
41 | + ), |
|
42 | + 'empty' => '', |
|
43 | + 'hide_empty' => 0, |
|
44 | + 'empty_zero' => 0, |
|
45 | + 'hide_alter_empty' => 1, |
|
46 | + 'link_to_user' => 0, |
|
47 | + 'exclude' => 0, |
|
48 | + 'id' => 'uid', |
|
49 | + 'table' => 'users', |
|
50 | + 'field' => 'uid', |
|
51 | + 'relationship' => 'none', |
|
52 | +), |
|
53 | +'name' => array( |
|
54 | + 'label' => 'Name', |
|
55 | + 'alter' => array( |
|
56 | + 'alter_text' => 0, |
|
57 | + 'text' => '', |
|
58 | + 'make_link' => 1, |
|
59 | + 'path' => 'account/[uid]', |
|
60 | + 'absolute' => 0, |
|
61 | + 'link_class' => '', |
|
62 | + 'alt' => '', |
|
63 | + 'rel' => '', |
|
64 | + 'prefix' => '', |
|
65 | + 'suffix' => '', |
|
66 | + 'target' => '', |
|
67 | + 'help' => '', |
|
68 | + 'trim' => 0, |
|
69 | + 'max_length' => '', |
|
70 | + 'word_boundary' => 1, |
|
71 | + 'ellipsis' => 1, |
|
72 | + 'html' => 0, |
|
73 | + 'strip_tags' => 0, |
|
74 | + ), |
|
75 | + 'empty' => '', |
|
76 | + 'hide_empty' => 0, |
|
77 | + 'empty_zero' => 0, |
|
78 | + 'hide_alter_empty' => 1, |
|
79 | + 'link_to_user' => 0, |
|
80 | + 'overwrite_anonymous' => 0, |
|
81 | + 'anonymous_text' => '', |
|
82 | + 'exclude' => 0, |
|
83 | + 'id' => 'name', |
|
84 | + 'table' => 'users', |
|
85 | + 'field' => 'name', |
|
86 | + 'relationship' => 'none', |
|
87 | +), |
|
88 | +'phpcode' => array( |
|
89 | + 'label' => 'BOINC user name', |
|
90 | + 'alter' => array( |
|
91 | + 'alter_text' => 0, |
|
92 | + 'text' => '', |
|
93 | + 'make_link' => 1, |
|
94 | + 'path' => 'account/[uid]', |
|
95 | + 'absolute' => 0, |
|
96 | + 'link_class' => '', |
|
97 | + 'alt' => '', |
|
98 | + 'rel' => '', |
|
99 | + 'prefix' => '', |
|
100 | + 'suffix' => '', |
|
101 | + 'target' => '', |
|
102 | + 'help' => '', |
|
103 | + 'trim' => 0, |
|
104 | + 'max_length' => '', |
|
105 | + 'word_boundary' => 1, |
|
106 | + 'ellipsis' => 1, |
|
107 | + 'html' => 0, |
|
108 | + 'strip_tags' => 0, |
|
109 | + ), |
|
110 | + 'empty' => '', |
|
111 | + 'hide_empty' => 0, |
|
112 | + 'empty_zero' => 0, |
|
113 | + 'hide_alter_empty' => 1, |
|
114 | + 'value' => '<?php |
|
115 | 115 | $myuser = user_load($data->uid); |
116 | 116 | echo $myuser->boincuser_name; |
117 | 117 | ?>', |
118 | - 'exclude' => 0, |
|
119 | - 'id' => 'phpcode', |
|
120 | - 'table' => 'customfield', |
|
121 | - 'field' => 'phpcode', |
|
122 | - 'relationship' => 'none', |
|
123 | - ), |
|
124 | - 'mail' => array( |
|
125 | - 'id' => 'mail', |
|
126 | - 'table' => 'users', |
|
127 | - 'field' => 'mail', |
|
128 | - ), |
|
129 | - 'rid' => array( |
|
130 | - 'label' => 'Roles', |
|
131 | - 'alter' => array( |
|
132 | - 'alter_text' => 0, |
|
133 | - 'text' => '', |
|
134 | - 'make_link' => 0, |
|
135 | - 'path' => '', |
|
136 | - 'absolute' => 0, |
|
137 | - 'link_class' => '', |
|
138 | - 'alt' => '', |
|
139 | - 'rel' => '', |
|
140 | - 'prefix' => '', |
|
141 | - 'suffix' => '', |
|
142 | - 'target' => '', |
|
143 | - 'help' => '', |
|
144 | - 'trim' => 0, |
|
145 | - 'max_length' => '', |
|
146 | - 'word_boundary' => 1, |
|
147 | - 'ellipsis' => 1, |
|
148 | - 'html' => 0, |
|
149 | - 'strip_tags' => 0, |
|
150 | - ), |
|
151 | - 'empty' => '', |
|
152 | - 'hide_empty' => 0, |
|
153 | - 'empty_zero' => 0, |
|
154 | - 'hide_alter_empty' => 1, |
|
155 | - 'type' => 'separator', |
|
156 | - 'separator' => ', ', |
|
157 | - 'exclude' => 0, |
|
158 | - 'id' => 'rid', |
|
159 | - 'table' => 'users_roles', |
|
160 | - 'field' => 'rid', |
|
161 | - 'relationship' => 'none', |
|
162 | - ), |
|
163 | - 'status' => array( |
|
164 | - 'label' => 'Banned', |
|
165 | - 'alter' => array( |
|
166 | - 'alter_text' => 0, |
|
167 | - 'text' => '', |
|
168 | - 'make_link' => 0, |
|
169 | - 'path' => '', |
|
170 | - 'absolute' => 0, |
|
171 | - 'link_class' => '', |
|
172 | - 'alt' => '', |
|
173 | - 'rel' => '', |
|
174 | - 'prefix' => '', |
|
175 | - 'suffix' => '', |
|
176 | - 'target' => '', |
|
177 | - 'help' => '', |
|
178 | - 'trim' => 0, |
|
179 | - 'max_length' => '', |
|
180 | - 'word_boundary' => 1, |
|
181 | - 'ellipsis' => 1, |
|
182 | - 'html' => 0, |
|
183 | - 'strip_tags' => 0, |
|
184 | - ), |
|
185 | - 'empty' => '', |
|
186 | - 'hide_empty' => 0, |
|
187 | - 'empty_zero' => 0, |
|
188 | - 'hide_alter_empty' => 1, |
|
189 | - 'type' => 'yes-no', |
|
190 | - 'not' => 1, |
|
191 | - 'exclude' => 0, |
|
192 | - 'id' => 'status', |
|
193 | - 'table' => 'users', |
|
194 | - 'field' => 'status', |
|
195 | - 'relationship' => 'none', |
|
196 | - ), |
|
197 | - 'access' => array( |
|
198 | - 'label' => 'Last access', |
|
199 | - 'alter' => array( |
|
200 | - 'alter_text' => 0, |
|
201 | - 'text' => '', |
|
202 | - 'make_link' => 0, |
|
203 | - 'path' => '', |
|
204 | - 'absolute' => 0, |
|
205 | - 'link_class' => '', |
|
206 | - 'alt' => '', |
|
207 | - 'rel' => '', |
|
208 | - 'prefix' => '', |
|
209 | - 'suffix' => '', |
|
210 | - 'target' => '', |
|
211 | - 'help' => '', |
|
212 | - 'trim' => 0, |
|
213 | - 'max_length' => '', |
|
214 | - 'word_boundary' => 1, |
|
215 | - 'ellipsis' => 1, |
|
216 | - 'html' => 0, |
|
217 | - 'strip_tags' => 0, |
|
218 | - ), |
|
219 | - 'empty' => '', |
|
220 | - 'hide_empty' => 0, |
|
221 | - 'empty_zero' => 0, |
|
222 | - 'hide_alter_empty' => 1, |
|
223 | - 'date_format' => 'time ago', |
|
224 | - 'custom_date_format' => '', |
|
225 | - 'exclude' => 0, |
|
226 | - 'id' => 'access', |
|
227 | - 'table' => 'users', |
|
228 | - 'field' => 'access', |
|
229 | - 'relationship' => 'none', |
|
230 | - ), |
|
231 | - 'login' => array( |
|
232 | - 'label' => 'Last login', |
|
233 | - 'alter' => array( |
|
234 | - 'alter_text' => 0, |
|
235 | - 'text' => '', |
|
236 | - 'make_link' => 0, |
|
237 | - 'path' => '', |
|
238 | - 'absolute' => 0, |
|
239 | - 'link_class' => '', |
|
240 | - 'alt' => '', |
|
241 | - 'rel' => '', |
|
242 | - 'prefix' => '', |
|
243 | - 'suffix' => '', |
|
244 | - 'target' => '', |
|
245 | - 'help' => '', |
|
246 | - 'trim' => 0, |
|
247 | - 'max_length' => '', |
|
248 | - 'word_boundary' => 1, |
|
249 | - 'ellipsis' => 1, |
|
250 | - 'html' => 0, |
|
251 | - 'strip_tags' => 0, |
|
252 | - ), |
|
253 | - 'empty' => '', |
|
254 | - 'hide_empty' => 0, |
|
255 | - 'empty_zero' => 0, |
|
256 | - 'hide_alter_empty' => 1, |
|
257 | - 'date_format' => 'time ago', |
|
258 | - 'custom_date_format' => '', |
|
259 | - 'exclude' => 0, |
|
260 | - 'id' => 'login', |
|
261 | - 'table' => 'users', |
|
262 | - 'field' => 'login', |
|
263 | - 'relationship' => 'none', |
|
264 | - ), |
|
265 | - 'created' => array( |
|
266 | - 'label' => 'Created date', |
|
267 | - 'alter' => array( |
|
268 | - 'alter_text' => 0, |
|
269 | - 'text' => '', |
|
270 | - 'make_link' => 0, |
|
271 | - 'path' => '', |
|
272 | - 'absolute' => 0, |
|
273 | - 'link_class' => '', |
|
274 | - 'alt' => '', |
|
275 | - 'rel' => '', |
|
276 | - 'prefix' => '', |
|
277 | - 'suffix' => '', |
|
278 | - 'target' => '', |
|
279 | - 'help' => '', |
|
280 | - 'trim' => 0, |
|
281 | - 'max_length' => '', |
|
282 | - 'word_boundary' => 1, |
|
283 | - 'ellipsis' => 1, |
|
284 | - 'html' => 0, |
|
285 | - 'strip_tags' => 0, |
|
286 | - ), |
|
287 | - 'empty' => '', |
|
288 | - 'hide_empty' => 0, |
|
289 | - 'empty_zero' => 0, |
|
290 | - 'hide_alter_empty' => 1, |
|
291 | - 'date_format' => 'time ago', |
|
292 | - 'custom_date_format' => '', |
|
293 | - 'exclude' => 0, |
|
294 | - 'id' => 'created', |
|
295 | - 'table' => 'users', |
|
296 | - 'field' => 'created', |
|
297 | - 'relationship' => 'none', |
|
298 | - ), |
|
299 | - 'edit_node' => array( |
|
300 | - 'label' => '', |
|
301 | - 'alter' => array( |
|
302 | - 'alter_text' => 0, |
|
303 | - 'text' => '', |
|
304 | - 'make_link' => 0, |
|
305 | - 'path' => '', |
|
306 | - 'absolute' => 0, |
|
307 | - 'link_class' => '', |
|
308 | - 'alt' => '', |
|
309 | - 'rel' => '', |
|
310 | - 'prefix' => '', |
|
311 | - 'suffix' => '', |
|
312 | - 'target' => '', |
|
313 | - 'help' => '', |
|
314 | - 'trim' => 0, |
|
315 | - 'max_length' => '', |
|
316 | - 'word_boundary' => 1, |
|
317 | - 'ellipsis' => 1, |
|
318 | - 'html' => 0, |
|
319 | - 'strip_tags' => 0, |
|
320 | - ), |
|
321 | - 'empty' => '', |
|
322 | - 'hide_empty' => 0, |
|
323 | - 'empty_zero' => 0, |
|
324 | - 'hide_alter_empty' => 1, |
|
325 | - 'text' => '', |
|
326 | - 'exclude' => 0, |
|
327 | - 'id' => 'edit_node', |
|
328 | - 'table' => 'users', |
|
329 | - 'field' => 'edit_node', |
|
330 | - 'relationship' => 'none', |
|
331 | - ), |
|
332 | - )); |
|
333 | - $handler->override_option('filters', array( |
|
334 | - 'name' => array( |
|
335 | - 'operator' => 'contains', |
|
336 | - 'value' => '', |
|
337 | - 'group' => '0', |
|
338 | - 'exposed' => TRUE, |
|
339 | - 'expose' => array( |
|
340 | - 'use_operator' => 0, |
|
341 | - 'operator' => 'name_op', |
|
342 | - 'identifier' => 'name', |
|
343 | - 'label' => 'Part of a User\'s name', |
|
344 | - 'remember' => 0, |
|
345 | - ), |
|
346 | - 'case' => 0, |
|
347 | - 'id' => 'name', |
|
348 | - 'table' => 'users', |
|
349 | - 'field' => 'name', |
|
350 | - 'relationship' => 'none', |
|
351 | - ), |
|
352 | - 'mail' => array( |
|
353 | - 'operator' => 'contains', |
|
354 | - 'value' => '', |
|
355 | - 'group' => '0', |
|
356 | - 'exposed' => TRUE, |
|
357 | - 'expose' => array( |
|
358 | - 'use_operator' => 0, |
|
359 | - 'operator' => 'mail_op', |
|
360 | - 'identifier' => 'mail', |
|
361 | - 'label' => 'Part of a User\'s E-mail', |
|
362 | - 'remember' => 0, |
|
363 | - ), |
|
364 | - 'case' => 0, |
|
365 | - 'id' => 'mail', |
|
366 | - 'table' => 'users', |
|
367 | - 'field' => 'mail', |
|
368 | - 'relationship' => 'none', |
|
369 | - ), |
|
370 | - )); |
|
371 | - $handler->override_option('access', array( |
|
372 | - 'type' => 'perm', |
|
373 | - 'perm' => 'administer users', |
|
374 | - )); |
|
375 | - $handler->override_option('cache', array( |
|
376 | - 'type' => 'none', |
|
377 | - )); |
|
378 | - $handler->override_option('use_pager', '1'); |
|
379 | - $handler->override_option('style_plugin', 'table'); |
|
380 | - $handler->override_option('style_options', array( |
|
381 | - 'grouping' => '', |
|
382 | - 'override' => 1, |
|
383 | - 'sticky' => 0, |
|
384 | - 'order' => 'desc', |
|
385 | - 'summary' => '', |
|
386 | - 'columns' => array( |
|
387 | - 'uid' => 'uid', |
|
388 | - 'name' => 'name', |
|
389 | - 'phpcode' => 'phpcode', |
|
390 | - 'mail' => 'mail', |
|
391 | - 'rid' => 'rid', |
|
392 | - 'status' => 'status', |
|
393 | - 'access' => 'access', |
|
394 | - 'login' => 'login', |
|
395 | - 'created' => 'created', |
|
396 | - 'edit_node' => 'edit_node', |
|
397 | - ), |
|
398 | - 'info' => array( |
|
399 | - 'uid' => array( |
|
400 | - 'sortable' => 1, |
|
401 | - 'separator' => '', |
|
402 | - ), |
|
403 | - 'name' => array( |
|
404 | - 'sortable' => 1, |
|
405 | - 'separator' => '', |
|
406 | - ), |
|
407 | - 'phpcode' => array( |
|
408 | - 'separator' => '', |
|
409 | - ), |
|
410 | - 'mail' => array( |
|
411 | - 'sortable' => 1, |
|
412 | - 'separator' => '', |
|
413 | - ), |
|
414 | - 'rid' => array( |
|
415 | - 'separator' => '', |
|
416 | - ), |
|
417 | - 'status' => array( |
|
418 | - 'sortable' => 1, |
|
419 | - 'separator' => '', |
|
420 | - ), |
|
421 | - 'access' => array( |
|
422 | - 'sortable' => 1, |
|
423 | - 'separator' => '', |
|
424 | - ), |
|
425 | - 'login' => array( |
|
426 | - 'sortable' => 1, |
|
427 | - 'separator' => '', |
|
428 | - ), |
|
429 | - 'created' => array( |
|
430 | - 'sortable' => 1, |
|
431 | - 'separator' => '', |
|
432 | - ), |
|
433 | - 'edit_node' => array( |
|
434 | - 'separator' => '', |
|
435 | - ), |
|
436 | - ), |
|
437 | - 'default' => 'access', |
|
438 | - )); |
|
439 | - $handler = $view->new_display('page', 'Page', 'page_1'); |
|
440 | - $handler->override_option('path', 'admin/user/search'); |
|
441 | - $handler->override_option('menu', array( |
|
442 | - 'type' => 'normal', |
|
443 | - 'title' => 'User search', |
|
444 | - 'description' => 'Find users by partial name or email address', |
|
445 | - 'weight' => '0', |
|
446 | - 'name' => 'navigation', |
|
447 | - )); |
|
448 | - $handler->override_option('tab_options', array( |
|
449 | - 'type' => 'none', |
|
450 | - 'title' => '', |
|
451 | - 'description' => '', |
|
452 | - 'weight' => 0, |
|
453 | - 'name' => 'navigation', |
|
454 | - )); |
|
118 | + 'exclude' => 0, |
|
119 | + 'id' => 'phpcode', |
|
120 | + 'table' => 'customfield', |
|
121 | + 'field' => 'phpcode', |
|
122 | + 'relationship' => 'none', |
|
123 | +), |
|
124 | +'mail' => array( |
|
125 | + 'id' => 'mail', |
|
126 | + 'table' => 'users', |
|
127 | + 'field' => 'mail', |
|
128 | +), |
|
129 | +'rid' => array( |
|
130 | + 'label' => 'Roles', |
|
131 | + 'alter' => array( |
|
132 | + 'alter_text' => 0, |
|
133 | + 'text' => '', |
|
134 | + 'make_link' => 0, |
|
135 | + 'path' => '', |
|
136 | + 'absolute' => 0, |
|
137 | + 'link_class' => '', |
|
138 | + 'alt' => '', |
|
139 | + 'rel' => '', |
|
140 | + 'prefix' => '', |
|
141 | + 'suffix' => '', |
|
142 | + 'target' => '', |
|
143 | + 'help' => '', |
|
144 | + 'trim' => 0, |
|
145 | + 'max_length' => '', |
|
146 | + 'word_boundary' => 1, |
|
147 | + 'ellipsis' => 1, |
|
148 | + 'html' => 0, |
|
149 | + 'strip_tags' => 0, |
|
150 | + ), |
|
151 | + 'empty' => '', |
|
152 | + 'hide_empty' => 0, |
|
153 | + 'empty_zero' => 0, |
|
154 | + 'hide_alter_empty' => 1, |
|
155 | + 'type' => 'separator', |
|
156 | + 'separator' => ', ', |
|
157 | + 'exclude' => 0, |
|
158 | + 'id' => 'rid', |
|
159 | + 'table' => 'users_roles', |
|
160 | + 'field' => 'rid', |
|
161 | + 'relationship' => 'none', |
|
162 | +), |
|
163 | +'status' => array( |
|
164 | + 'label' => 'Banned', |
|
165 | + 'alter' => array( |
|
166 | + 'alter_text' => 0, |
|
167 | + 'text' => '', |
|
168 | + 'make_link' => 0, |
|
169 | + 'path' => '', |
|
170 | + 'absolute' => 0, |
|
171 | + 'link_class' => '', |
|
172 | + 'alt' => '', |
|
173 | + 'rel' => '', |
|
174 | + 'prefix' => '', |
|
175 | + 'suffix' => '', |
|
176 | + 'target' => '', |
|
177 | + 'help' => '', |
|
178 | + 'trim' => 0, |
|
179 | + 'max_length' => '', |
|
180 | + 'word_boundary' => 1, |
|
181 | + 'ellipsis' => 1, |
|
182 | + 'html' => 0, |
|
183 | + 'strip_tags' => 0, |
|
184 | + ), |
|
185 | + 'empty' => '', |
|
186 | + 'hide_empty' => 0, |
|
187 | + 'empty_zero' => 0, |
|
188 | + 'hide_alter_empty' => 1, |
|
189 | + 'type' => 'yes-no', |
|
190 | + 'not' => 1, |
|
191 | + 'exclude' => 0, |
|
192 | + 'id' => 'status', |
|
193 | + 'table' => 'users', |
|
194 | + 'field' => 'status', |
|
195 | + 'relationship' => 'none', |
|
196 | +), |
|
197 | +'access' => array( |
|
198 | + 'label' => 'Last access', |
|
199 | + 'alter' => array( |
|
200 | + 'alter_text' => 0, |
|
201 | + 'text' => '', |
|
202 | + 'make_link' => 0, |
|
203 | + 'path' => '', |
|
204 | + 'absolute' => 0, |
|
205 | + 'link_class' => '', |
|
206 | + 'alt' => '', |
|
207 | + 'rel' => '', |
|
208 | + 'prefix' => '', |
|
209 | + 'suffix' => '', |
|
210 | + 'target' => '', |
|
211 | + 'help' => '', |
|
212 | + 'trim' => 0, |
|
213 | + 'max_length' => '', |
|
214 | + 'word_boundary' => 1, |
|
215 | + 'ellipsis' => 1, |
|
216 | + 'html' => 0, |
|
217 | + 'strip_tags' => 0, |
|
218 | + ), |
|
219 | + 'empty' => '', |
|
220 | + 'hide_empty' => 0, |
|
221 | + 'empty_zero' => 0, |
|
222 | + 'hide_alter_empty' => 1, |
|
223 | + 'date_format' => 'time ago', |
|
224 | + 'custom_date_format' => '', |
|
225 | + 'exclude' => 0, |
|
226 | + 'id' => 'access', |
|
227 | + 'table' => 'users', |
|
228 | + 'field' => 'access', |
|
229 | + 'relationship' => 'none', |
|
230 | +), |
|
231 | +'login' => array( |
|
232 | + 'label' => 'Last login', |
|
233 | + 'alter' => array( |
|
234 | + 'alter_text' => 0, |
|
235 | + 'text' => '', |
|
236 | + 'make_link' => 0, |
|
237 | + 'path' => '', |
|
238 | + 'absolute' => 0, |
|
239 | + 'link_class' => '', |
|
240 | + 'alt' => '', |
|
241 | + 'rel' => '', |
|
242 | + 'prefix' => '', |
|
243 | + 'suffix' => '', |
|
244 | + 'target' => '', |
|
245 | + 'help' => '', |
|
246 | + 'trim' => 0, |
|
247 | + 'max_length' => '', |
|
248 | + 'word_boundary' => 1, |
|
249 | + 'ellipsis' => 1, |
|
250 | + 'html' => 0, |
|
251 | + 'strip_tags' => 0, |
|
252 | + ), |
|
253 | + 'empty' => '', |
|
254 | + 'hide_empty' => 0, |
|
255 | + 'empty_zero' => 0, |
|
256 | + 'hide_alter_empty' => 1, |
|
257 | + 'date_format' => 'time ago', |
|
258 | + 'custom_date_format' => '', |
|
259 | + 'exclude' => 0, |
|
260 | + 'id' => 'login', |
|
261 | + 'table' => 'users', |
|
262 | + 'field' => 'login', |
|
263 | + 'relationship' => 'none', |
|
264 | +), |
|
265 | +'created' => array( |
|
266 | + 'label' => 'Created date', |
|
267 | + 'alter' => array( |
|
268 | + 'alter_text' => 0, |
|
269 | + 'text' => '', |
|
270 | + 'make_link' => 0, |
|
271 | + 'path' => '', |
|
272 | + 'absolute' => 0, |
|
273 | + 'link_class' => '', |
|
274 | + 'alt' => '', |
|
275 | + 'rel' => '', |
|
276 | + 'prefix' => '', |
|
277 | + 'suffix' => '', |
|
278 | + 'target' => '', |
|
279 | + 'help' => '', |
|
280 | + 'trim' => 0, |
|
281 | + 'max_length' => '', |
|
282 | + 'word_boundary' => 1, |
|
283 | + 'ellipsis' => 1, |
|
284 | + 'html' => 0, |
|
285 | + 'strip_tags' => 0, |
|
286 | + ), |
|
287 | + 'empty' => '', |
|
288 | + 'hide_empty' => 0, |
|
289 | + 'empty_zero' => 0, |
|
290 | + 'hide_alter_empty' => 1, |
|
291 | + 'date_format' => 'time ago', |
|
292 | + 'custom_date_format' => '', |
|
293 | + 'exclude' => 0, |
|
294 | + 'id' => 'created', |
|
295 | + 'table' => 'users', |
|
296 | + 'field' => 'created', |
|
297 | + 'relationship' => 'none', |
|
298 | +), |
|
299 | +'edit_node' => array( |
|
300 | + 'label' => '', |
|
301 | + 'alter' => array( |
|
302 | + 'alter_text' => 0, |
|
303 | + 'text' => '', |
|
304 | + 'make_link' => 0, |
|
305 | + 'path' => '', |
|
306 | + 'absolute' => 0, |
|
307 | + 'link_class' => '', |
|
308 | + 'alt' => '', |
|
309 | + 'rel' => '', |
|
310 | + 'prefix' => '', |
|
311 | + 'suffix' => '', |
|
312 | + 'target' => '', |
|
313 | + 'help' => '', |
|
314 | + 'trim' => 0, |
|
315 | + 'max_length' => '', |
|
316 | + 'word_boundary' => 1, |
|
317 | + 'ellipsis' => 1, |
|
318 | + 'html' => 0, |
|
319 | + 'strip_tags' => 0, |
|
320 | + ), |
|
321 | + 'empty' => '', |
|
322 | + 'hide_empty' => 0, |
|
323 | + 'empty_zero' => 0, |
|
324 | + 'hide_alter_empty' => 1, |
|
325 | + 'text' => '', |
|
326 | + 'exclude' => 0, |
|
327 | + 'id' => 'edit_node', |
|
328 | + 'table' => 'users', |
|
329 | + 'field' => 'edit_node', |
|
330 | + 'relationship' => 'none', |
|
331 | +), |
|
332 | +)); |
|
333 | +$handler->override_option('filters', array( |
|
334 | +'name' => array( |
|
335 | + 'operator' => 'contains', |
|
336 | + 'value' => '', |
|
337 | + 'group' => '0', |
|
338 | + 'exposed' => TRUE, |
|
339 | + 'expose' => array( |
|
340 | + 'use_operator' => 0, |
|
341 | + 'operator' => 'name_op', |
|
342 | + 'identifier' => 'name', |
|
343 | + 'label' => 'Part of a User\'s name', |
|
344 | + 'remember' => 0, |
|
345 | + ), |
|
346 | + 'case' => 0, |
|
347 | + 'id' => 'name', |
|
348 | + 'table' => 'users', |
|
349 | + 'field' => 'name', |
|
350 | + 'relationship' => 'none', |
|
351 | +), |
|
352 | +'mail' => array( |
|
353 | + 'operator' => 'contains', |
|
354 | + 'value' => '', |
|
355 | + 'group' => '0', |
|
356 | + 'exposed' => TRUE, |
|
357 | + 'expose' => array( |
|
358 | + 'use_operator' => 0, |
|
359 | + 'operator' => 'mail_op', |
|
360 | + 'identifier' => 'mail', |
|
361 | + 'label' => 'Part of a User\'s E-mail', |
|
362 | + 'remember' => 0, |
|
363 | + ), |
|
364 | + 'case' => 0, |
|
365 | + 'id' => 'mail', |
|
366 | + 'table' => 'users', |
|
367 | + 'field' => 'mail', |
|
368 | + 'relationship' => 'none', |
|
369 | +), |
|
370 | +)); |
|
371 | +$handler->override_option('access', array( |
|
372 | +'type' => 'perm', |
|
373 | +'perm' => 'administer users', |
|
374 | +)); |
|
375 | +$handler->override_option('cache', array( |
|
376 | +'type' => 'none', |
|
377 | +)); |
|
378 | +$handler->override_option('use_pager', '1'); |
|
379 | +$handler->override_option('style_plugin', 'table'); |
|
380 | +$handler->override_option('style_options', array( |
|
381 | +'grouping' => '', |
|
382 | +'override' => 1, |
|
383 | +'sticky' => 0, |
|
384 | +'order' => 'desc', |
|
385 | +'summary' => '', |
|
386 | +'columns' => array( |
|
387 | + 'uid' => 'uid', |
|
388 | + 'name' => 'name', |
|
389 | + 'phpcode' => 'phpcode', |
|
390 | + 'mail' => 'mail', |
|
391 | + 'rid' => 'rid', |
|
392 | + 'status' => 'status', |
|
393 | + 'access' => 'access', |
|
394 | + 'login' => 'login', |
|
395 | + 'created' => 'created', |
|
396 | + 'edit_node' => 'edit_node', |
|
397 | +), |
|
398 | +'info' => array( |
|
399 | + 'uid' => array( |
|
400 | + 'sortable' => 1, |
|
401 | + 'separator' => '', |
|
402 | + ), |
|
403 | + 'name' => array( |
|
404 | + 'sortable' => 1, |
|
405 | + 'separator' => '', |
|
406 | + ), |
|
407 | + 'phpcode' => array( |
|
408 | + 'separator' => '', |
|
409 | + ), |
|
410 | + 'mail' => array( |
|
411 | + 'sortable' => 1, |
|
412 | + 'separator' => '', |
|
413 | + ), |
|
414 | + 'rid' => array( |
|
415 | + 'separator' => '', |
|
416 | + ), |
|
417 | + 'status' => array( |
|
418 | + 'sortable' => 1, |
|
419 | + 'separator' => '', |
|
420 | + ), |
|
421 | + 'access' => array( |
|
422 | + 'sortable' => 1, |
|
423 | + 'separator' => '', |
|
424 | + ), |
|
425 | + 'login' => array( |
|
426 | + 'sortable' => 1, |
|
427 | + 'separator' => '', |
|
428 | + ), |
|
429 | + 'created' => array( |
|
430 | + 'sortable' => 1, |
|
431 | + 'separator' => '', |
|
432 | + ), |
|
433 | + 'edit_node' => array( |
|
434 | + 'separator' => '', |
|
435 | + ), |
|
436 | +), |
|
437 | +'default' => 'access', |
|
438 | +)); |
|
439 | +$handler = $view->new_display('page', 'Page', 'page_1'); |
|
440 | +$handler->override_option('path', 'admin/user/search'); |
|
441 | +$handler->override_option('menu', array( |
|
442 | +'type' => 'normal', |
|
443 | +'title' => 'User search', |
|
444 | +'description' => 'Find users by partial name or email address', |
|
445 | +'weight' => '0', |
|
446 | +'name' => 'navigation', |
|
447 | +)); |
|
448 | +$handler->override_option('tab_options', array( |
|
449 | +'type' => 'none', |
|
450 | +'title' => '', |
|
451 | +'description' => '', |
|
452 | +'weight' => 0, |
|
453 | +'name' => 'navigation', |
|
454 | +)); |
|
455 | 455 | |
456 | - $views[$view->name] = $view; |
|
456 | +$views[$view->name] = $view; |
|
457 | 457 | |
458 | - return $views; |
|
458 | +return $views; |
|
459 | 459 | } |
@@ -4,57 +4,57 @@ |
||
4 | 4 | * Implementation of hook_fieldgroup_default_groups(). |
5 | 5 | */ |
6 | 6 | function boinc_standard_fieldgroup_default_groups() { |
7 | - $groups = array(); |
|
7 | +$groups = array(); |
|
8 | 8 | |
9 | - // Exported group: group_boinctranslate_opts |
|
10 | - $groups['page-group_boinctranslate_opts'] = array( |
|
11 | - 'group_type' => 'standard', |
|
12 | - 'type_name' => 'page', |
|
13 | - 'group_name' => 'group_boinctranslate_opts', |
|
14 | - 'label' => 'boinctranslate node options', |
|
15 | - 'settings' => array( |
|
16 | - 'form' => array( |
|
17 | - 'style' => 'fieldset_collapsed', |
|
18 | - 'description' => '', |
|
19 | - ), |
|
20 | - 'display' => array( |
|
21 | - 'description' => '', |
|
22 | - 'teaser' => array( |
|
23 | - 'format' => 'fieldset', |
|
24 | - 'exclude' => 0, |
|
25 | - ), |
|
26 | - 'full' => array( |
|
27 | - 'format' => 'fieldset', |
|
28 | - 'exclude' => 0, |
|
29 | - ), |
|
30 | - '4' => array( |
|
31 | - 'format' => 'fieldset', |
|
32 | - 'exclude' => 0, |
|
33 | - ), |
|
34 | - '2' => array( |
|
35 | - 'format' => 'fieldset', |
|
36 | - 'exclude' => 0, |
|
37 | - ), |
|
38 | - '3' => array( |
|
39 | - 'format' => 'fieldset', |
|
40 | - 'exclude' => 0, |
|
41 | - ), |
|
42 | - 'token' => array( |
|
43 | - 'format' => 'fieldset', |
|
44 | - 'exclude' => 0, |
|
45 | - ), |
|
46 | - 'label' => 'above', |
|
47 | - ), |
|
9 | +// Exported group: group_boinctranslate_opts |
|
10 | +$groups['page-group_boinctranslate_opts'] = array( |
|
11 | +'group_type' => 'standard', |
|
12 | +'type_name' => 'page', |
|
13 | +'group_name' => 'group_boinctranslate_opts', |
|
14 | +'label' => 'boinctranslate node options', |
|
15 | +'settings' => array( |
|
16 | + 'form' => array( |
|
17 | + 'style' => 'fieldset_collapsed', |
|
18 | + 'description' => '', |
|
19 | + ), |
|
20 | + 'display' => array( |
|
21 | + 'description' => '', |
|
22 | + 'teaser' => array( |
|
23 | + 'format' => 'fieldset', |
|
24 | + 'exclude' => 0, |
|
48 | 25 | ), |
49 | - 'weight' => '104', |
|
50 | - 'fields' => array( |
|
51 | - '0' => 'field_boinctranslate_transifex', |
|
26 | + 'full' => array( |
|
27 | + 'format' => 'fieldset', |
|
28 | + 'exclude' => 0, |
|
52 | 29 | ), |
53 | - ); |
|
30 | + '4' => array( |
|
31 | + 'format' => 'fieldset', |
|
32 | + 'exclude' => 0, |
|
33 | + ), |
|
34 | + '2' => array( |
|
35 | + 'format' => 'fieldset', |
|
36 | + 'exclude' => 0, |
|
37 | + ), |
|
38 | + '3' => array( |
|
39 | + 'format' => 'fieldset', |
|
40 | + 'exclude' => 0, |
|
41 | + ), |
|
42 | + 'token' => array( |
|
43 | + 'format' => 'fieldset', |
|
44 | + 'exclude' => 0, |
|
45 | + ), |
|
46 | + 'label' => 'above', |
|
47 | + ), |
|
48 | +), |
|
49 | +'weight' => '104', |
|
50 | +'fields' => array( |
|
51 | + '0' => 'field_boinctranslate_transifex', |
|
52 | +), |
|
53 | +); |
|
54 | 54 | |
55 | - // Translatables |
|
56 | - // Included for use with string extractors like potx. |
|
57 | - t('boinctranslate node options'); |
|
55 | +// Translatables |
|
56 | +// Included for use with string extractors like potx. |
|
57 | +t('boinctranslate node options'); |
|
58 | 58 | |
59 | - return $groups; |
|
59 | +return $groups; |
|
60 | 60 | } |
@@ -4,60 +4,60 @@ |
||
4 | 4 | * Implementation of hook_default_panels_mini(). |
5 | 5 | */ |
6 | 6 | function user_account_project_list_default_panels_mini() { |
7 | - $export = array(); |
|
7 | +$export = array(); |
|
8 | 8 | |
9 | - $mini = new stdClass; |
|
10 | - $mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */ |
|
11 | - $mini->api_version = 1; |
|
12 | - $mini->name = 'user_project_list'; |
|
13 | - $mini->category = 'BOINC'; |
|
14 | - $mini->admin_title = 'User project list'; |
|
15 | - $mini->admin_description = 'A list of all BOINC projects in which a user is participating'; |
|
16 | - $mini->requiredcontexts = array(); |
|
17 | - $mini->contexts = array(); |
|
18 | - $mini->relationships = array(); |
|
19 | - $display = new panels_display; |
|
20 | - $display->layout = 'onecol'; |
|
21 | - $display->layout_settings = array(); |
|
22 | - $display->panel_settings = array( |
|
23 | - 'style_settings' => array( |
|
24 | - 'default' => NULL, |
|
25 | - 'middle' => NULL, |
|
26 | - ), |
|
27 | - ); |
|
28 | - $display->cache = array(); |
|
29 | - $display->title = ''; |
|
30 | - $display->storage_type = 'panels_mini'; |
|
31 | - $display->storage_id = 'user_project_list'; |
|
32 | - $display->content = array(); |
|
33 | - $display->panels = array(); |
|
34 | - $pane = new stdClass; |
|
35 | - $pane->pid = 'new-1'; |
|
36 | - $pane->panel = 'middle'; |
|
37 | - $pane->type = 'custom'; |
|
38 | - $pane->subtype = 'custom'; |
|
39 | - $pane->shown = TRUE; |
|
40 | - $pane->access = array(); |
|
41 | - $pane->configuration = array( |
|
42 | - 'admin_title' => 'Dashboard project table', |
|
43 | - 'title' => bts('Projects', array(), NULL, 'boinc:account-dashboard'), |
|
44 | - 'body' => '<?php echo boincuser_get_projects_table(); ?>', |
|
45 | - 'format' => '3', |
|
46 | - 'substitute' => TRUE, |
|
47 | - ); |
|
48 | - $pane->cache = array(); |
|
49 | - $pane->style = array( |
|
50 | - 'settings' => NULL, |
|
51 | - ); |
|
52 | - $pane->css = array(); |
|
53 | - $pane->extras = array(); |
|
54 | - $pane->position = 0; |
|
55 | - $display->content['new-1'] = $pane; |
|
56 | - $display->panels['middle'][0] = 'new-1'; |
|
57 | - $display->hide_title = PANELS_TITLE_FIXED; |
|
58 | - $display->title_pane = 'new-1'; |
|
59 | - $mini->display = $display; |
|
60 | - $export['user_project_list'] = $mini; |
|
9 | +$mini = new stdClass; |
|
10 | +$mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */ |
|
11 | +$mini->api_version = 1; |
|
12 | +$mini->name = 'user_project_list'; |
|
13 | +$mini->category = 'BOINC'; |
|
14 | +$mini->admin_title = 'User project list'; |
|
15 | +$mini->admin_description = 'A list of all BOINC projects in which a user is participating'; |
|
16 | +$mini->requiredcontexts = array(); |
|
17 | +$mini->contexts = array(); |
|
18 | +$mini->relationships = array(); |
|
19 | +$display = new panels_display; |
|
20 | +$display->layout = 'onecol'; |
|
21 | +$display->layout_settings = array(); |
|
22 | +$display->panel_settings = array( |
|
23 | +'style_settings' => array( |
|
24 | + 'default' => NULL, |
|
25 | + 'middle' => NULL, |
|
26 | +), |
|
27 | +); |
|
28 | +$display->cache = array(); |
|
29 | +$display->title = ''; |
|
30 | +$display->storage_type = 'panels_mini'; |
|
31 | +$display->storage_id = 'user_project_list'; |
|
32 | +$display->content = array(); |
|
33 | +$display->panels = array(); |
|
34 | +$pane = new stdClass; |
|
35 | +$pane->pid = 'new-1'; |
|
36 | +$pane->panel = 'middle'; |
|
37 | +$pane->type = 'custom'; |
|
38 | +$pane->subtype = 'custom'; |
|
39 | +$pane->shown = TRUE; |
|
40 | +$pane->access = array(); |
|
41 | +$pane->configuration = array( |
|
42 | + 'admin_title' => 'Dashboard project table', |
|
43 | + 'title' => bts('Projects', array(), NULL, 'boinc:account-dashboard'), |
|
44 | + 'body' => '<?php echo boincuser_get_projects_table(); ?>', |
|
45 | + 'format' => '3', |
|
46 | + 'substitute' => TRUE, |
|
47 | +); |
|
48 | +$pane->cache = array(); |
|
49 | +$pane->style = array( |
|
50 | + 'settings' => NULL, |
|
51 | +); |
|
52 | +$pane->css = array(); |
|
53 | +$pane->extras = array(); |
|
54 | +$pane->position = 0; |
|
55 | +$display->content['new-1'] = $pane; |
|
56 | +$display->panels['middle'][0] = 'new-1'; |
|
57 | +$display->hide_title = PANELS_TITLE_FIXED; |
|
58 | +$display->title_pane = 'new-1'; |
|
59 | +$mini->display = $display; |
|
60 | +$export['user_project_list'] = $mini; |
|
61 | 61 | |
62 | - return $export; |
|
62 | +return $export; |
|
63 | 63 | } |
@@ -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") { |
|
9 | - return array("version" => 1); |
|
10 | - } |
|
7 | +list($module, $api) = func_get_args(); |
|
8 | +if ($module == "panels_mini" && $api == "panels_default") { |
|
9 | +return array("version" => 1); |
|
10 | +} |
|
11 | 11 | } |
@@ -4,11 +4,11 @@ |
||
4 | 4 | * Implementation of hook_ctools_plugin_api(). |
5 | 5 | */ |
6 | 6 | function spam_controls_ctools_plugin_api() { |
7 | - list($module, $api) = func_get_args(); |
|
8 | - if ($module == "context" && $api == "context") { |
|
9 | - return array("version" => 3); |
|
10 | - } |
|
11 | - elseif ($module == "strongarm" && $api == "strongarm") { |
|
12 | - return array("version" => 1); |
|
13 | - } |
|
7 | +list($module, $api) = func_get_args(); |
|
8 | +if ($module == "context" && $api == "context") { |
|
9 | +return array("version" => 3); |
|
10 | +} |
|
11 | +elseif ($module == "strongarm" && $api == "strongarm") { |
|
12 | +return array("version" => 1); |
|
13 | +} |
|
14 | 14 | } |
@@ -4,77 +4,77 @@ |
||
4 | 4 | * Implementation of hook_strongarm(). |
5 | 5 | */ |
6 | 6 | function spam_controls_strongarm() { |
7 | - $export = array(); |
|
7 | +$export = array(); |
|
8 | 8 | |
9 | - $strongarm = new stdClass; |
|
10 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
11 | - $strongarm->api_version = 1; |
|
12 | - $strongarm->name = 'captcha_add_captcha_description'; |
|
13 | - $strongarm->value = 0; |
|
14 | - $export['captcha_add_captcha_description'] = $strongarm; |
|
9 | +$strongarm = new stdClass; |
|
10 | +$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
11 | +$strongarm->api_version = 1; |
|
12 | +$strongarm->name = 'captcha_add_captcha_description'; |
|
13 | +$strongarm->value = 0; |
|
14 | +$export['captcha_add_captcha_description'] = $strongarm; |
|
15 | 15 | |
16 | - $strongarm = new stdClass; |
|
17 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
18 | - $strongarm->api_version = 1; |
|
19 | - $strongarm->name = 'captcha_administration_mode'; |
|
20 | - $strongarm->value = 0; |
|
21 | - $export['captcha_administration_mode'] = $strongarm; |
|
16 | +$strongarm = new stdClass; |
|
17 | +$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
18 | +$strongarm->api_version = 1; |
|
19 | +$strongarm->name = 'captcha_administration_mode'; |
|
20 | +$strongarm->value = 0; |
|
21 | +$export['captcha_administration_mode'] = $strongarm; |
|
22 | 22 | |
23 | - $strongarm = new stdClass; |
|
24 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
25 | - $strongarm->api_version = 1; |
|
26 | - $strongarm->name = 'captcha_allow_on_admin_pages'; |
|
27 | - $strongarm->value = 0; |
|
28 | - $export['captcha_allow_on_admin_pages'] = $strongarm; |
|
23 | +$strongarm = new stdClass; |
|
24 | +$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
25 | +$strongarm->api_version = 1; |
|
26 | +$strongarm->name = 'captcha_allow_on_admin_pages'; |
|
27 | +$strongarm->value = 0; |
|
28 | +$export['captcha_allow_on_admin_pages'] = $strongarm; |
|
29 | 29 | |
30 | - $strongarm = new stdClass; |
|
31 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
32 | - $strongarm->api_version = 1; |
|
33 | - $strongarm->name = 'captcha_default_challenge'; |
|
34 | - $strongarm->value = 'recaptcha/reCAPTCHA'; |
|
35 | - $export['captcha_default_challenge'] = $strongarm; |
|
30 | +$strongarm = new stdClass; |
|
31 | +$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
32 | +$strongarm->api_version = 1; |
|
33 | +$strongarm->name = 'captcha_default_challenge'; |
|
34 | +$strongarm->value = 'recaptcha/reCAPTCHA'; |
|
35 | +$export['captcha_default_challenge'] = $strongarm; |
|
36 | 36 | |
37 | - $strongarm = new stdClass; |
|
38 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
39 | - $strongarm->api_version = 1; |
|
40 | - $strongarm->name = 'captcha_description'; |
|
41 | - $strongarm->value = 'This question is for testing whether you are a human visitor and to prevent automated spam submissions.'; |
|
42 | - $export['captcha_description'] = $strongarm; |
|
37 | +$strongarm = new stdClass; |
|
38 | +$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
39 | +$strongarm->api_version = 1; |
|
40 | +$strongarm->name = 'captcha_description'; |
|
41 | +$strongarm->value = 'This question is for testing whether you are a human visitor and to prevent automated spam submissions.'; |
|
42 | +$export['captcha_description'] = $strongarm; |
|
43 | 43 | |
44 | - $strongarm = new stdClass; |
|
45 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
46 | - $strongarm->api_version = 1; |
|
47 | - $strongarm->name = 'recaptcha_ajax_api'; |
|
48 | - $strongarm->value = 0; |
|
49 | - $export['recaptcha_ajax_api'] = $strongarm; |
|
44 | +$strongarm = new stdClass; |
|
45 | +$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
46 | +$strongarm->api_version = 1; |
|
47 | +$strongarm->name = 'recaptcha_ajax_api'; |
|
48 | +$strongarm->value = 0; |
|
49 | +$export['recaptcha_ajax_api'] = $strongarm; |
|
50 | 50 | |
51 | - $strongarm = new stdClass; |
|
52 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
53 | - $strongarm->api_version = 1; |
|
54 | - $strongarm->name = 'recaptcha_private_key'; |
|
55 | - $strongarm->value = '6LcAp9gSAAAAACqDNjbUiryK2BICYWXQP3HvwlIX'; |
|
56 | - $export['recaptcha_private_key'] = $strongarm; |
|
51 | +$strongarm = new stdClass; |
|
52 | +$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
53 | +$strongarm->api_version = 1; |
|
54 | +$strongarm->name = 'recaptcha_private_key'; |
|
55 | +$strongarm->value = '6LcAp9gSAAAAACqDNjbUiryK2BICYWXQP3HvwlIX'; |
|
56 | +$export['recaptcha_private_key'] = $strongarm; |
|
57 | 57 | |
58 | - $strongarm = new stdClass; |
|
59 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
60 | - $strongarm->api_version = 1; |
|
61 | - $strongarm->name = 'recaptcha_public_key'; |
|
62 | - $strongarm->value = '6LcAp9gSAAAAAK3VyU-clMl_lDf2l-OrSwxMqoZi'; |
|
63 | - $export['recaptcha_public_key'] = $strongarm; |
|
58 | +$strongarm = new stdClass; |
|
59 | +$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
60 | +$strongarm->api_version = 1; |
|
61 | +$strongarm->name = 'recaptcha_public_key'; |
|
62 | +$strongarm->value = '6LcAp9gSAAAAAK3VyU-clMl_lDf2l-OrSwxMqoZi'; |
|
63 | +$export['recaptcha_public_key'] = $strongarm; |
|
64 | 64 | |
65 | - $strongarm = new stdClass; |
|
66 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
67 | - $strongarm->api_version = 1; |
|
68 | - $strongarm->name = 'recaptcha_secure_connection'; |
|
69 | - $strongarm->value = 1; |
|
70 | - $export['recaptcha_secure_connection'] = $strongarm; |
|
65 | +$strongarm = new stdClass; |
|
66 | +$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
67 | +$strongarm->api_version = 1; |
|
68 | +$strongarm->name = 'recaptcha_secure_connection'; |
|
69 | +$strongarm->value = 1; |
|
70 | +$export['recaptcha_secure_connection'] = $strongarm; |
|
71 | 71 | |
72 | - $strongarm = new stdClass; |
|
73 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
74 | - $strongarm->api_version = 1; |
|
75 | - $strongarm->name = 'recaptcha_theme'; |
|
76 | - $strongarm->value = 'clean'; |
|
77 | - $export['recaptcha_theme'] = $strongarm; |
|
72 | +$strongarm = new stdClass; |
|
73 | +$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
74 | +$strongarm->api_version = 1; |
|
75 | +$strongarm->name = 'recaptcha_theme'; |
|
76 | +$strongarm->value = 'clean'; |
|
77 | +$export['recaptcha_theme'] = $strongarm; |
|
78 | 78 | |
79 | - return $export; |
|
79 | +return $export; |
|
80 | 80 | } |
@@ -4,16 +4,16 @@ |
||
4 | 4 | * Implementation of hook_captcha_default_points(). |
5 | 5 | */ |
6 | 6 | function spam_controls_captcha_default_points() { |
7 | - return array( |
|
8 | - 'edit_profile_node_form' => array( |
|
9 | - 'form_id' => 'edit_profile_node_form', |
|
10 | - 'module' => NULL, |
|
11 | - 'captcha_type' => NULL, |
|
12 | - ), |
|
13 | - 'user_register' => array( |
|
14 | - 'form_id' => 'user_register', |
|
15 | - 'module' => NULL, |
|
16 | - 'captcha_type' => NULL, |
|
17 | - ), |
|
18 | - ); |
|
7 | +return array( |
|
8 | +'edit_profile_node_form' => array( |
|
9 | + 'form_id' => 'edit_profile_node_form', |
|
10 | + 'module' => NULL, |
|
11 | + 'captcha_type' => NULL, |
|
12 | +), |
|
13 | +'user_register' => array( |
|
14 | + 'form_id' => 'user_register', |
|
15 | + 'module' => NULL, |
|
16 | + 'captcha_type' => NULL, |
|
17 | +), |
|
18 | +); |
|
19 | 19 | } |